lib/google_places/photo.rb
# Search for a Photo's url with its reference key
#
# @return [URL]
# @param [String] api_key the provided api key
# @param [Boolean] sensor
#   Indicates whether or not the Place request came from a device using a location sensor (e.g. a GPS)
#   to determine the location sent in this request.
#   <b>Note that this is a mandatory parameter</b>
# @param [Hash] options
# @option options [Hash] :retry_options ({})
#   A Hash containing parameters for search retries
# @option options [Object] :retry_options[:status] ([])
# @option options [Integer] :retry_options[:max] (0) the maximum retries
# @option options [Integer] :retry_options[:delay] (5) the delay between each retry in seconds
Search for a Photo's url with its reference key
Search for a Photo ' s url with its reference key
def fetch_url(maxwidth, options = {})
      language  = options.delete(:language)
      retry_options = options.delete(:retry_options) || {}
      unless @fetched_url
        @fetched_url = Request.photo_url(
          :maxwidth => maxwidth,
          :photoreference => @photo_reference,
          :sensor => @sensor,
          :key => @api_key,
          :retry_options => retry_options
        )
      end
      @fetched_url
    end
def fetch_url ( maxwidth , options = { } ) language = options . delete ( :language ) retry_options = options . delete ( :retry_options ) || { } unless @fetched_url @fetched_url = Request . photo_url ( :maxwidth => maxwidth , :photoreference => @photo_reference , :sensor => @sensor , :key => @api_key , :retry_options => retry_options ) end @fetched_url end
Search for a Photo's url with its reference key
Search for a Photo ' s url with its reference key
None
URL
maxwidth
<not_specific>
options
:retry_options[:delay] (5) the delay between each retry in seconds
: retry_options [ : delay ] ( 5 ) the delay between each retry in seconds
<not_specific>
None