Class: PetfinderV2::Serializers::OrgHours
- Inherits:
-
Object
- Object
- PetfinderV2::Serializers::OrgHours
- Defined in:
- lib/petfinder_V2/serializers/organization.rb
Instance Attribute Summary collapse
-
#friday ⇒ Object
readonly
Returns the value of attribute friday.
-
#monday ⇒ Object
readonly
Returns the value of attribute monday.
-
#saturday ⇒ Object
readonly
Returns the value of attribute saturday.
-
#sunday ⇒ Object
readonly
Returns the value of attribute sunday.
-
#thursday ⇒ Object
readonly
Returns the value of attribute thursday.
-
#tuesday ⇒ Object
readonly
Returns the value of attribute tuesday.
-
#wednesday ⇒ Object
readonly
Returns the value of attribute wednesday.
Instance Method Summary collapse
-
#initialize(data) ⇒ OrgHours
constructor
A new instance of OrgHours.
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
#friday ⇒ Object (readonly)
Returns the value of attribute friday.
19 20 21 |
# File 'lib/petfinder_V2/serializers/organization.rb', line 19 def friday @friday end |
#monday ⇒ Object (readonly)
Returns the value of attribute monday.
19 20 21 |
# File 'lib/petfinder_V2/serializers/organization.rb', line 19 def monday @monday end |
#saturday ⇒ Object (readonly)
Returns the value of attribute saturday.
19 20 21 |
# File 'lib/petfinder_V2/serializers/organization.rb', line 19 def saturday @saturday end |
#sunday ⇒ Object (readonly)
Returns the value of attribute sunday.
19 20 21 |
# File 'lib/petfinder_V2/serializers/organization.rb', line 19 def sunday @sunday end |
#thursday ⇒ Object (readonly)
Returns the value of attribute thursday.
19 20 21 |
# File 'lib/petfinder_V2/serializers/organization.rb', line 19 def thursday @thursday end |
#tuesday ⇒ Object (readonly)
Returns the value of attribute tuesday.
19 20 21 |
# File 'lib/petfinder_V2/serializers/organization.rb', line 19 def tuesday @tuesday end |
#wednesday ⇒ Object (readonly)
Returns the value of attribute wednesday.
19 20 21 |
# File 'lib/petfinder_V2/serializers/organization.rb', line 19 def wednesday @wednesday end |