Class: Hungry::Menu::Category
- Defined in:
- lib/hungry/menu/category.rb
Instance Attribute Summary collapse
-
#dishes ⇒ Object
Returns the value of attribute dishes.
-
#id ⇒ Object
Returns the value of attribute id.
-
#menu ⇒ Object
Returns the value of attribute menu.
-
#name ⇒ Object
Returns the value of attribute name.
Attributes inherited from Resource
#attributes, #data_source, #resources
Method Summary
Methods inherited from Resource
all, belongs_to, #canonical_data_source, collection, each, find, first, get, has_many, #initialize, lazy_load, #reload
Constructor Details
This class inherits a constructor from Hungry::Resource
Instance Attribute Details
#dishes ⇒ Object
Returns the value of attribute dishes.
5 6 7 |
# File 'lib/hungry/menu/category.rb', line 5 def dishes @dishes end |
#id ⇒ Object
Returns the value of attribute id.
5 6 7 |
# File 'lib/hungry/menu/category.rb', line 5 def id @id end |
#menu ⇒ Object
Returns the value of attribute menu.
5 6 7 |
# File 'lib/hungry/menu/category.rb', line 5 def @menu end |
#name ⇒ Object
Returns the value of attribute name.
5 6 7 |
# File 'lib/hungry/menu/category.rb', line 5 def name @name end |