Class: Ym4r::YahooMaps::BuildingBlock::LocalSearch::Result
- Inherits:
-
Struct
- Object
- Struct
- Ym4r::YahooMaps::BuildingBlock::LocalSearch::Result
- Defined in:
- lib/ym4r/yahoo_maps/building_block/local_search.rb
Overview
Contains a result from the Yahoo! Maps Local Search REST service V3.
Instance Attribute Summary collapse
-
#address ⇒ Object
Returns the value of attribute address.
-
#business_click_url ⇒ Object
Returns the value of attribute business_click_url.
-
#business_url ⇒ Object
Returns the value of attribute business_url.
-
#categories ⇒ Object
Returns the value of attribute categories.
-
#city ⇒ Object
Returns the value of attribute city.
-
#click_url ⇒ Object
Returns the value of attribute click_url.
-
#distance ⇒ Object
Returns the value of attribute distance.
-
#id ⇒ Object
Returns the value of attribute id.
-
#latitude ⇒ Object
Returns the value of attribute latitude.
-
#longitude ⇒ Object
Returns the value of attribute longitude.
-
#map_url ⇒ Object
Returns the value of attribute map_url.
-
#phone ⇒ Object
Returns the value of attribute phone.
-
#rating ⇒ Object
Returns the value of attribute rating.
-
#state ⇒ Object
Returns the value of attribute state.
-
#title ⇒ Object
Returns the value of attribute title.
-
#url ⇒ Object
Returns the value of attribute url.
Instance Method Summary collapse
-
#latlon ⇒ Object
convenience method for the lazy.
-
#lonlat ⇒ Object
convenience method for the lazy.
Instance Attribute Details
#address ⇒ Object
Returns the value of attribute address
123 124 125 |
# File 'lib/ym4r/yahoo_maps/building_block/local_search.rb', line 123 def address @address end |
#business_click_url ⇒ Object
Returns the value of attribute business_click_url
123 124 125 |
# File 'lib/ym4r/yahoo_maps/building_block/local_search.rb', line 123 def business_click_url @business_click_url end |
#business_url ⇒ Object
Returns the value of attribute business_url
123 124 125 |
# File 'lib/ym4r/yahoo_maps/building_block/local_search.rb', line 123 def business_url @business_url end |
#categories ⇒ Object
Returns the value of attribute categories
123 124 125 |
# File 'lib/ym4r/yahoo_maps/building_block/local_search.rb', line 123 def categories @categories end |
#city ⇒ Object
Returns the value of attribute city
123 124 125 |
# File 'lib/ym4r/yahoo_maps/building_block/local_search.rb', line 123 def city @city end |
#click_url ⇒ Object
Returns the value of attribute click_url
123 124 125 |
# File 'lib/ym4r/yahoo_maps/building_block/local_search.rb', line 123 def click_url @click_url end |
#distance ⇒ Object
Returns the value of attribute distance
123 124 125 |
# File 'lib/ym4r/yahoo_maps/building_block/local_search.rb', line 123 def distance @distance end |
#id ⇒ Object
Returns the value of attribute id
123 124 125 |
# File 'lib/ym4r/yahoo_maps/building_block/local_search.rb', line 123 def id @id end |
#latitude ⇒ Object
Returns the value of attribute latitude
123 124 125 |
# File 'lib/ym4r/yahoo_maps/building_block/local_search.rb', line 123 def latitude @latitude end |
#longitude ⇒ Object
Returns the value of attribute longitude
123 124 125 |
# File 'lib/ym4r/yahoo_maps/building_block/local_search.rb', line 123 def longitude @longitude end |
#map_url ⇒ Object
Returns the value of attribute map_url
123 124 125 |
# File 'lib/ym4r/yahoo_maps/building_block/local_search.rb', line 123 def map_url @map_url end |
#phone ⇒ Object
Returns the value of attribute phone
123 124 125 |
# File 'lib/ym4r/yahoo_maps/building_block/local_search.rb', line 123 def phone @phone end |
#rating ⇒ Object
Returns the value of attribute rating
123 124 125 |
# File 'lib/ym4r/yahoo_maps/building_block/local_search.rb', line 123 def @rating end |
#state ⇒ Object
Returns the value of attribute state
123 124 125 |
# File 'lib/ym4r/yahoo_maps/building_block/local_search.rb', line 123 def state @state end |
#title ⇒ Object
Returns the value of attribute title
123 124 125 |
# File 'lib/ym4r/yahoo_maps/building_block/local_search.rb', line 123 def title @title end |
#url ⇒ Object
Returns the value of attribute url
123 124 125 |
# File 'lib/ym4r/yahoo_maps/building_block/local_search.rb', line 123 def url @url end |
Instance Method Details
#latlon ⇒ Object
convenience method for the lazy
131 132 133 |
# File 'lib/ym4r/yahoo_maps/building_block/local_search.rb', line 131 def latlon [latitude,longitude] end |
#lonlat ⇒ Object
convenience method for the lazy
126 127 128 |
# File 'lib/ym4r/yahoo_maps/building_block/local_search.rb', line 126 def lonlat [longitude,latitude] end |