Class: PetfinderV2::Serializers::Breed
- Inherits:
-
Object
- Object
- PetfinderV2::Serializers::Breed
- Defined in:
- lib/petfinder_V2/serializers/animal.rb
Instance Attribute Summary collapse
-
#mixed ⇒ Object
readonly
Returns the value of attribute mixed.
-
#primary ⇒ Object
readonly
Returns the value of attribute primary.
-
#secondary ⇒ Object
readonly
Returns the value of attribute secondary.
-
#unknown ⇒ Object
readonly
Returns the value of attribute unknown.
Instance Method Summary collapse
-
#initialize(data) ⇒ Breed
constructor
A new instance of Breed.
Constructor Details
#initialize(data) ⇒ Breed
9 10 11 12 13 14 |
# File 'lib/petfinder_V2/serializers/animal.rb', line 9 def initialize(data) @primary = data['primary'] @secondary = data['secondary'] @mixed = data['mixed'] @unknown = data['unknown'] end |
Instance Attribute Details
#mixed ⇒ Object (readonly)
Returns the value of attribute mixed.
8 9 10 |
# File 'lib/petfinder_V2/serializers/animal.rb', line 8 def mixed @mixed end |
#primary ⇒ Object (readonly)
Returns the value of attribute primary.
8 9 10 |
# File 'lib/petfinder_V2/serializers/animal.rb', line 8 def primary @primary end |
#secondary ⇒ Object (readonly)
Returns the value of attribute secondary.
8 9 10 |
# File 'lib/petfinder_V2/serializers/animal.rb', line 8 def secondary @secondary end |
#unknown ⇒ Object (readonly)
Returns the value of attribute unknown.
8 9 10 |
# File 'lib/petfinder_V2/serializers/animal.rb', line 8 def unknown @unknown end |