Module: Lieu::Client::Details

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

Overview

Methods for the Place Details API

Instance Method Summary collapse

Instance Method Details

#details(reference, options = {}) ⇒ Hashie::Mash

Get a place details.

Examples:

Lieu.details('place_reference')

Parameters:

  • reference (String)

    the place reference

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

    optional parameters

Returns:

  • (Hashie::Mash)

    the place details

See Also:



14
15
16
17
18
# File 'lib/lieu/client/details.rb', line 14

def details(reference, options={})
  options.merge!(reference: reference)

  get('details', options).result
end