Class: Yelp::Fusion::Responses::Models::Location
- Defined in:
- lib/yelp/fusion/responses/models/location.rb
Overview
Model for the Location JSON body
Instance Attribute Summary collapse
-
#address1 ⇒ Object
readonly
Returns the value of attribute address1.
-
#address2 ⇒ Object
readonly
Returns the value of attribute address2.
-
#address3 ⇒ Object
readonly
Returns the value of attribute address3.
-
#city ⇒ Object
readonly
Returns the value of attribute city.
-
#country ⇒ Object
readonly
Returns the value of attribute country.
-
#cross_streets ⇒ Object
readonly
Returns the value of attribute cross_streets.
-
#display_address ⇒ Object
readonly
Returns the value of attribute display_address.
-
#state ⇒ Object
readonly
Returns the value of attribute state.
-
#zip_code ⇒ Object
readonly
Returns the value of attribute zip_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.
32 33 34 |
# File 'lib/yelp/fusion/responses/models/location.rb', line 32 def initialize(json) super(json) end |
Instance Attribute Details
#address1 ⇒ Object (readonly)
Returns the value of attribute address1.
29 30 31 |
# File 'lib/yelp/fusion/responses/models/location.rb', line 29 def address1 @address1 end |
#address2 ⇒ Object (readonly)
Returns the value of attribute address2.
29 30 31 |
# File 'lib/yelp/fusion/responses/models/location.rb', line 29 def address2 @address2 end |
#address3 ⇒ Object (readonly)
Returns the value of attribute address3.
29 30 31 |
# File 'lib/yelp/fusion/responses/models/location.rb', line 29 def address3 @address3 end |
#city ⇒ Object (readonly)
Returns the value of attribute city.
29 30 31 |
# File 'lib/yelp/fusion/responses/models/location.rb', line 29 def city @city end |
#country ⇒ Object (readonly)
Returns the value of attribute country.
29 30 31 |
# File 'lib/yelp/fusion/responses/models/location.rb', line 29 def country @country end |
#cross_streets ⇒ Object (readonly)
Returns the value of attribute cross_streets.
29 30 31 |
# File 'lib/yelp/fusion/responses/models/location.rb', line 29 def cross_streets @cross_streets end |
#display_address ⇒ Object (readonly)
Returns the value of attribute display_address.
29 30 31 |
# File 'lib/yelp/fusion/responses/models/location.rb', line 29 def display_address @display_address end |
#state ⇒ Object (readonly)
Returns the value of attribute state.
29 30 31 |
# File 'lib/yelp/fusion/responses/models/location.rb', line 29 def state @state end |
#zip_code ⇒ Object (readonly)
Returns the value of attribute zip_code.
29 30 31 |
# File 'lib/yelp/fusion/responses/models/location.rb', line 29 def zip_code @zip_code end |