Class: Yelp::Fusion::Responses::Models::Location

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

Overview

Model for the Location JSON body

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#address1Object (readonly)

Returns the value of attribute address1.



29
30
31
# File 'lib/yelp/fusion/responses/models/location.rb', line 29

def address1
  @address1
end

#address2Object (readonly)

Returns the value of attribute address2.



29
30
31
# File 'lib/yelp/fusion/responses/models/location.rb', line 29

def address2
  @address2
end

#address3Object (readonly)

Returns the value of attribute address3.



29
30
31
# File 'lib/yelp/fusion/responses/models/location.rb', line 29

def address3
  @address3
end

#cityObject (readonly)

Returns the value of attribute city.



29
30
31
# File 'lib/yelp/fusion/responses/models/location.rb', line 29

def city
  @city
end

#countryObject (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_streetsObject (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_addressObject (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

#stateObject (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_codeObject (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