Class: PetfinderV2::Serializers::Breed

Inherits:
Object
  • Object
show all
Defined in:
lib/petfinder_V2/serializers/animal.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#mixedObject (readonly)

Returns the value of attribute mixed.



8
9
10
# File 'lib/petfinder_V2/serializers/animal.rb', line 8

def mixed
  @mixed
end

#primaryObject (readonly)

Returns the value of attribute primary.



8
9
10
# File 'lib/petfinder_V2/serializers/animal.rb', line 8

def primary
  @primary
end

#secondaryObject (readonly)

Returns the value of attribute secondary.



8
9
10
# File 'lib/petfinder_V2/serializers/animal.rb', line 8

def secondary
  @secondary
end

#unknownObject (readonly)

Returns the value of attribute unknown.



8
9
10
# File 'lib/petfinder_V2/serializers/animal.rb', line 8

def unknown
  @unknown
end