Class: Zomato2::Menu
- Inherits:
-
EntityBase
- Object
- EntityBase
- Zomato2::Menu
- Defined in:
- lib/zomato2/menu.rb
Instance Attribute Summary collapse
-
#daily_menu_id ⇒ Object
readonly
Returns the value of attribute daily_menu_id.
-
#dishes ⇒ Object
readonly
Returns the value of attribute dishes.
-
#end_date ⇒ Object
readonly
Returns the value of attribute end_date.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#start_date ⇒ Object
readonly
Returns the value of attribute start_date.
Instance Method Summary collapse
-
#initialize(zom_conn, attributes) ⇒ Menu
constructor
A new instance of Menu.
- #to_s ⇒ Object
Methods inherited from EntityBase
Constructor Details
#initialize(zom_conn, attributes) ⇒ Menu
Returns a new instance of Menu.
6 7 8 9 10 11 12 13 14 15 |
# File 'lib/zomato2/menu.rb', line 6 def initialize(zom_conn, attributes) super(zom_conn) self.instance_variables.each do |att| if att === :@zom_conn next else self.instance_variable_set attributes[att] end end end |
Instance Attribute Details
#daily_menu_id ⇒ Object (readonly)
Returns the value of attribute daily_menu_id.
4 5 6 |
# File 'lib/zomato2/menu.rb', line 4 def @daily_menu_id end |
#dishes ⇒ Object (readonly)
Returns the value of attribute dishes.
4 5 6 |
# File 'lib/zomato2/menu.rb', line 4 def dishes @dishes end |
#end_date ⇒ Object (readonly)
Returns the value of attribute end_date.
4 5 6 |
# File 'lib/zomato2/menu.rb', line 4 def end_date @end_date end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
4 5 6 |
# File 'lib/zomato2/menu.rb', line 4 def name @name end |
#start_date ⇒ Object (readonly)
Returns the value of attribute start_date.
4 5 6 |
# File 'lib/zomato2/menu.rb', line 4 def start_date @start_date end |
Instance Method Details
#to_s ⇒ Object
17 |
# File 'lib/zomato2/menu.rb', line 17 def to_s; super; end |