Class: Hungry::Menu::Category

Inherits:
Resource
  • Object
show all
Defined in:
lib/hungry/menu/category.rb

Instance Attribute Summary collapse

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

#dishesObject

Returns the value of attribute dishes.



5
6
7
# File 'lib/hungry/menu/category.rb', line 5

def dishes
  @dishes
end

#idObject

Returns the value of attribute id.



5
6
7
# File 'lib/hungry/menu/category.rb', line 5

def id
  @id
end

Returns the value of attribute menu.



5
6
7
# File 'lib/hungry/menu/category.rb', line 5

def menu
  @menu
end

#nameObject

Returns the value of attribute name.



5
6
7
# File 'lib/hungry/menu/category.rb', line 5

def name
  @name
end