Class: Yelp::Response::Model::Location

Inherits:
Base
  • Object
show all
Defined in:
lib/yelp/responses/models/location.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(json) ⇒ Location

Returns a new instance of Location.



11
12
13
14
15
# File 'lib/yelp/responses/models/location.rb', line 11

def initialize(json)
  super(json)

  @coordinate = parse(@coordinate, Coordinate)
end

Instance Attribute Details

#addressObject (readonly)

Returns the value of attribute address.



8
9
10
# File 'lib/yelp/responses/models/location.rb', line 8

def address
  @address
end

#cityObject (readonly)

Returns the value of attribute city.



8
9
10
# File 'lib/yelp/responses/models/location.rb', line 8

def city
  @city
end

#coordinateObject (readonly)

Returns the value of attribute coordinate.



8
9
10
# File 'lib/yelp/responses/models/location.rb', line 8

def coordinate
  @coordinate
end

#country_codeObject (readonly)

Returns the value of attribute country_code.



8
9
10
# File 'lib/yelp/responses/models/location.rb', line 8

def country_code
  @country_code
end

#cross_streetsObject (readonly)

Returns the value of attribute cross_streets.



8
9
10
# File 'lib/yelp/responses/models/location.rb', line 8

def cross_streets
  @cross_streets
end

#display_addressObject (readonly)

Returns the value of attribute display_address.



8
9
10
# File 'lib/yelp/responses/models/location.rb', line 8

def display_address
  @display_address
end

#geo_accuracyObject (readonly)

Returns the value of attribute geo_accuracy.



8
9
10
# File 'lib/yelp/responses/models/location.rb', line 8

def geo_accuracy
  @geo_accuracy
end

#neighborhoodsObject (readonly)

Returns the value of attribute neighborhoods.



8
9
10
# File 'lib/yelp/responses/models/location.rb', line 8

def neighborhoods
  @neighborhoods
end

#postal_codeObject (readonly)

Returns the value of attribute postal_code.



8
9
10
# File 'lib/yelp/responses/models/location.rb', line 8

def postal_code
  @postal_code
end

#state_codeObject (readonly)

Returns the value of attribute state_code.



8
9
10
# File 'lib/yelp/responses/models/location.rb', line 8

def state_code
  @state_code
end