Module: Lieu::Client::Photos

Included in:
Lieu::Client
Defined in:
lib/lieu/client/photos.rb

Overview

Methods for the Place Photos API

Instance Method Summary collapse

Instance Method Details

#photo(photo_reference, options = {}) ⇒ String

Get a photo.

Examples:

Lieu.photo('photo_reference', maxheight: '15', maxwidth: '15')

Parameters:

  • photo_reference (String)

    the photo reference

  • options (Hash) (defaults to: {})

    a customizable set of options

Options Hash (options):

  • :maxheight (String)

    the maximum desired height in pixels

  • :maxwidth (String)

    the maximum desired width in pixels

Returns:

  • (String)

    the raw image

See Also:



16
17
18
19
20
# File 'lib/lieu/client/photos.rb', line 16

def photo(photo_reference, options={})
  options.merge!(photoreference: photo_reference, json: false)

  get('photo', options)
end