Class: Ym4r::YahooMaps::BuildingBlock::LocalSearch::Result

Inherits:
Struct
  • Object
show all
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

Instance Method Summary collapse

Instance Attribute Details

#addressObject

Returns the value of attribute address

Returns:

  • (Object)

    the current value of address



123
124
125
# File 'lib/ym4r/yahoo_maps/building_block/local_search.rb', line 123

def address
  @address
end

#business_click_urlObject

Returns the value of attribute business_click_url

Returns:

  • (Object)

    the current value of 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_urlObject

Returns the value of attribute business_url

Returns:

  • (Object)

    the current value of business_url



123
124
125
# File 'lib/ym4r/yahoo_maps/building_block/local_search.rb', line 123

def business_url
  @business_url
end

#categoriesObject

Returns the value of attribute categories

Returns:

  • (Object)

    the current value of categories



123
124
125
# File 'lib/ym4r/yahoo_maps/building_block/local_search.rb', line 123

def categories
  @categories
end

#cityObject

Returns the value of attribute city

Returns:

  • (Object)

    the current value of city



123
124
125
# File 'lib/ym4r/yahoo_maps/building_block/local_search.rb', line 123

def city
  @city
end

#click_urlObject

Returns the value of attribute click_url

Returns:

  • (Object)

    the current value of click_url



123
124
125
# File 'lib/ym4r/yahoo_maps/building_block/local_search.rb', line 123

def click_url
  @click_url
end

#distanceObject

Returns the value of attribute distance

Returns:

  • (Object)

    the current value of distance



123
124
125
# File 'lib/ym4r/yahoo_maps/building_block/local_search.rb', line 123

def distance
  @distance
end

#idObject

Returns the value of attribute id

Returns:

  • (Object)

    the current value of id



123
124
125
# File 'lib/ym4r/yahoo_maps/building_block/local_search.rb', line 123

def id
  @id
end

#latitudeObject

Returns the value of attribute latitude

Returns:

  • (Object)

    the current value of latitude



123
124
125
# File 'lib/ym4r/yahoo_maps/building_block/local_search.rb', line 123

def latitude
  @latitude
end

#longitudeObject

Returns the value of attribute longitude

Returns:

  • (Object)

    the current value of longitude



123
124
125
# File 'lib/ym4r/yahoo_maps/building_block/local_search.rb', line 123

def longitude
  @longitude
end

#map_urlObject

Returns the value of attribute map_url

Returns:

  • (Object)

    the current value of map_url



123
124
125
# File 'lib/ym4r/yahoo_maps/building_block/local_search.rb', line 123

def map_url
  @map_url
end

#phoneObject

Returns the value of attribute phone

Returns:

  • (Object)

    the current value of phone



123
124
125
# File 'lib/ym4r/yahoo_maps/building_block/local_search.rb', line 123

def phone
  @phone
end

#ratingObject

Returns the value of attribute rating

Returns:

  • (Object)

    the current value of rating



123
124
125
# File 'lib/ym4r/yahoo_maps/building_block/local_search.rb', line 123

def rating
  @rating
end

#stateObject

Returns the value of attribute state

Returns:

  • (Object)

    the current value of state



123
124
125
# File 'lib/ym4r/yahoo_maps/building_block/local_search.rb', line 123

def state
  @state
end

#titleObject

Returns the value of attribute title

Returns:

  • (Object)

    the current value of title



123
124
125
# File 'lib/ym4r/yahoo_maps/building_block/local_search.rb', line 123

def title
  @title
end

#urlObject

Returns the value of attribute url

Returns:

  • (Object)

    the current value of url



123
124
125
# File 'lib/ym4r/yahoo_maps/building_block/local_search.rb', line 123

def url
  @url
end

Instance Method Details

#latlonObject

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

#lonlatObject

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