Class: Yelp::Fusion::Responses::Models::OpenHours

Inherits:
Base
  • Object
show all
Defined in:
lib/yelp/fusion/responses/models/open_hours.rb

Overview

Model for the OpenHours JSON body

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#dayObject (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

#endObject (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_overnightObject (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

#startObject (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