Class: Zomato::Locality

Inherits:
Object
  • Object
show all
Defined in:
lib/zomato/locality.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(attributes) ⇒ Locality

Returns a new instance of Locality.



6
7
8
9
10
11
# File 'lib/zomato/locality.rb', line 6

def initialize(attributes)
  @name = attributes['name']
  @city_name = attributes['city_name']
  @city_id = attributes['city_id']
  
end

Instance Attribute Details

#city_idObject (readonly)

Returns the value of attribute city_id.



4
5
6
# File 'lib/zomato/locality.rb', line 4

def city_id
  @city_id
end

#city_nameObject (readonly)

Returns the value of attribute city_name.



4
5
6
# File 'lib/zomato/locality.rb', line 4

def city_name
  @city_name
end

#nameObject (readonly)

Returns the value of attribute name.



4
5
6
# File 'lib/zomato/locality.rb', line 4

def name
  @name
end