Class: Yelp::Fusion::Responses::Models::OpenHours
- Defined in:
- lib/yelp/fusion/responses/models/open_hours.rb
Overview
Model for the OpenHours JSON body
Instance Attribute Summary collapse
-
#day ⇒ Object
readonly
Returns the value of attribute day.
-
#end ⇒ Object
readonly
Returns the value of attribute end.
-
#is_overnight ⇒ Object
readonly
Returns the value of attribute is_overnight.
-
#start ⇒ Object
readonly
Returns the value of attribute start.
Instance Method Summary collapse
-
#initialize(json) ⇒ OpenHours
constructor
A new instance of OpenHours.
Constructor Details
#initialize(json) ⇒ OpenHours
Returns a new instance of OpenHours.
30 31 32 |
# File 'lib/yelp/fusion/responses/models/open_hours.rb', line 30 def initialize(json) super(json) end |
Instance Attribute Details
#day ⇒ Object (readonly)
Returns the value of attribute day.
29 30 31 |
# File 'lib/yelp/fusion/responses/models/open_hours.rb', line 29 def day @day end |
#end ⇒ Object (readonly)
Returns the value of attribute end.
29 30 31 |
# File 'lib/yelp/fusion/responses/models/open_hours.rb', line 29 def end @end end |
#is_overnight ⇒ Object (readonly)
Returns the value of attribute is_overnight.
29 30 31 |
# File 'lib/yelp/fusion/responses/models/open_hours.rb', line 29 def is_overnight @is_overnight end |
#start ⇒ Object (readonly)
Returns the value of attribute start.
29 30 31 |
# File 'lib/yelp/fusion/responses/models/open_hours.rb', line 29 def start @start end |