Class: Zomato2::Menu

Inherits:
EntityBase show all
Defined in:
lib/zomato2/menu.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from EntityBase

#get

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_idObject (readonly)

Returns the value of attribute daily_menu_id.



4
5
6
# File 'lib/zomato2/menu.rb', line 4

def daily_menu_id
  @daily_menu_id
end

#dishesObject (readonly)

Returns the value of attribute dishes.



4
5
6
# File 'lib/zomato2/menu.rb', line 4

def dishes
  @dishes
end

#end_dateObject (readonly)

Returns the value of attribute end_date.



4
5
6
# File 'lib/zomato2/menu.rb', line 4

def end_date
  @end_date
end

#nameObject (readonly)

Returns the value of attribute name.



4
5
6
# File 'lib/zomato2/menu.rb', line 4

def name
  @name
end

#start_dateObject (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_sObject



17
# File 'lib/zomato2/menu.rb', line 17

def to_s; super; end