Class: PetfinderV2::Serializers::OrgHours

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(data) ⇒ OrgHours

Returns a new instance of OrgHours.



20
21
22
23
24
25
26
27
28
# File 'lib/petfinder_V2/serializers/organization.rb', line 20

def initialize(data)
  @monday = data['monday']
  @tuesday = data['tuesday']
  @wednesday = data['wednesday']
  @thursday = data['thursday']
  @friday = data['friday']
  @saturday = data['saturday']
  @sunday = data['sunday']
end

Instance Attribute Details

#fridayObject (readonly)

Returns the value of attribute friday.



19
20
21
# File 'lib/petfinder_V2/serializers/organization.rb', line 19

def friday
  @friday
end

#mondayObject (readonly)

Returns the value of attribute monday.



19
20
21
# File 'lib/petfinder_V2/serializers/organization.rb', line 19

def monday
  @monday
end

#saturdayObject (readonly)

Returns the value of attribute saturday.



19
20
21
# File 'lib/petfinder_V2/serializers/organization.rb', line 19

def saturday
  @saturday
end

#sundayObject (readonly)

Returns the value of attribute sunday.



19
20
21
# File 'lib/petfinder_V2/serializers/organization.rb', line 19

def sunday
  @sunday
end

#thursdayObject (readonly)

Returns the value of attribute thursday.



19
20
21
# File 'lib/petfinder_V2/serializers/organization.rb', line 19

def thursday
  @thursday
end

#tuesdayObject (readonly)

Returns the value of attribute tuesday.



19
20
21
# File 'lib/petfinder_V2/serializers/organization.rb', line 19

def tuesday
  @tuesday
end

#wednesdayObject (readonly)

Returns the value of attribute wednesday.



19
20
21
# File 'lib/petfinder_V2/serializers/organization.rb', line 19

def wednesday
  @wednesday
end