| 1 | #! perl | ||
| 2 | |||
| 3 | use v5.36; | ||
| 4 | use Object::Pad; | ||
| 5 | use Class::JSON_Object; | ||
| 6 | use utf8; | ||
| 7 | |||
| 8 | =head1 NAME | ||
| 9 | |||
| 10 | Weenect::Animal - animal data | ||
| 11 | |||
| 12 | (Remember, the tracker is intended for cats and dogs.) | ||
| 13 | |||
| 14 | =cut | ||
| 15 | |||
| 16 | =head1 DESCRIPTION | ||
| 17 | |||
| 18 | Weenect::Animal describes an animal | ||
| 19 | |||
| 20 | =head1 METHODS | ||
| 21 | |||
| 22 | Supported methods include: | ||
| 23 | |||
| 24 | =head2 activity_level | ||
| 25 | |||
| 26 | =head2 birth_date | ||
| 27 | |||
| 28 | =head2 breed | ||
| 29 | |||
| 30 | =head2 breed_id | ||
| 31 | |||
| 32 | =head2 created_at | ||
| 33 | |||
| 34 | =head2 habitual_environment | ||
| 35 | |||
| 36 | =head2 id | ||
| 37 | |||
| 38 | =head2 identification | ||
| 39 | |||
| 40 | =head2 is_activated | ||
| 41 | |||
| 42 | =head2 is_sterilized | ||
| 43 | |||
| 44 | =head2 last_vaccination_date | ||
| 45 | |||
| 46 | =head2 last_vet_visit_date | ||
| 47 | |||
| 48 | =head2 morphology | ||
| 49 | |||
| 50 | =head2 name | ||
| 51 | |||
| 52 | =head2 santevet_optin | ||
| 53 | |||
| 54 | =head2 sex | ||
| 55 | |||
| 56 | =head2 species | ||
| 57 | |||
| 58 | =head2 tracker_id | ||
| 59 | |||
| 60 | =head2 updated_at | ||
| 61 | |||
| 62 | =head2 weight | ||
| 63 | |||
| 64 | =cut | ||
| 65 | |||
| 66 | class Weenect::Animal :does(Class::JSON_Object) { | ||
| 67 | field $activity_level; # | ||
| 68 | field $birth_date; # | ||
| 69 | field $breed; # | ||
| 70 | field $breed_id; # | ||
| 71 | field $created_at; # | ||
| 72 | field $habitual_environment; # | ||
| 73 | field $id; # | ||
| 74 | field $identification; # | ||
| 75 | field $is_activated; # | ||
| 76 | field $is_sterilized; # | ||
| 77 | field $last_vaccination_date; # | ||
| 78 | field $last_vet_visit_date; # | ||
| 79 | field $morphology; # | ||
| 80 | field $name; # | ||
| 81 | field $santevet_optin; # | ||
| 82 | field $sex; # | ||
| 83 | field $species; # | ||
| 84 | field $tracker_id; # | ||
| 85 | field $updated_at; # | ||
| 86 | field $weight; # | ||
| 87 | } | ||
| 88 | |||
| 89 | class Weenect::Animals :does(Class::JSON_Object) { | ||
| 90 | field $total; | ||
| 91 | field @items :Class(Weenect::Animal); | ||
| 92 | } | ||
| 93 | |||
| 94 | 1; |