Class: Yelp::Response::Model::Location
- Defined in:
- lib/yelp/responses/models/location.rb
Instance Attribute Summary collapse
-
#address ⇒ Object
readonly
Returns the value of attribute address.
-
#city ⇒ Object
readonly
Returns the value of attribute city.
-
#coordinate ⇒ Object
readonly
Returns the value of attribute coordinate.
-
#country_code ⇒ Object
readonly
Returns the value of attribute country_code.
-
#cross_streets ⇒ Object
readonly
Returns the value of attribute cross_streets.
-
#display_address ⇒ Object
readonly
Returns the value of attribute display_address.
-
#geo_accuracy ⇒ Object
readonly
Returns the value of attribute geo_accuracy.
-
#neighborhoods ⇒ Object
readonly
Returns the value of attribute neighborhoods.
-
#postal_code ⇒ Object
readonly
Returns the value of attribute postal_code.
-
#state_code ⇒ Object
readonly
Returns the value of attribute state_code.
Instance Method Summary collapse
-
#initialize(json) ⇒ Location
constructor
A new instance of Location.
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
#address ⇒ Object (readonly)
Returns the value of attribute address.
8 9 10 |
# File 'lib/yelp/responses/models/location.rb', line 8 def address @address end |
#city ⇒ Object (readonly)
Returns the value of attribute city.
8 9 10 |
# File 'lib/yelp/responses/models/location.rb', line 8 def city @city end |
#coordinate ⇒ Object (readonly)
Returns the value of attribute coordinate.
8 9 10 |
# File 'lib/yelp/responses/models/location.rb', line 8 def coordinate @coordinate end |
#country_code ⇒ Object (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_streets ⇒ Object (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_address ⇒ Object (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_accuracy ⇒ Object (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 |
#neighborhoods ⇒ Object (readonly)
Returns the value of attribute neighborhoods.
8 9 10 |
# File 'lib/yelp/responses/models/location.rb', line 8 def neighborhoods @neighborhoods end |
#postal_code ⇒ Object (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_code ⇒ Object (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 |