Class: Yelp::Fusion::Responses::Models::Hours

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

Overview

Model for the Hours JSON body

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(json) ⇒ Hours

Returns a new instance of Hours.



33
34
35
36
# File 'lib/yelp/fusion/responses/models/hours.rb', line 33

def initialize(json)
  super(json)
  @open = parse(@open, OpenHours)
end

Instance Attribute Details

#hours_typeObject (readonly)

Returns the value of attribute hours_type.



32
33
34
# File 'lib/yelp/fusion/responses/models/hours.rb', line 32

def hours_type
  @hours_type
end

#is_open_nowObject (readonly)

Returns the value of attribute is_open_now.



32
33
34
# File 'lib/yelp/fusion/responses/models/hours.rb', line 32

def is_open_now
  @is_open_now
end

#openObject (readonly)

Returns the value of attribute open.



32
33
34
# File 'lib/yelp/fusion/responses/models/hours.rb', line 32

def open
  @open
end