Module: GogoKit::Client::Address

Includes:
Utils
Included in:
GogoKit::Client
Defined in:
lib/gogokit/client/address.rb

Overview

GogoKit::Client methods for getting addresses for the authenticated user

Instance Method Summary collapse

Methods included from Utils

#object_from_response

Instance Method Details

#get_addresses(options = {}) ⇒ GogoKit::PagedResource

Retrieves all addresses for the authenticated user

user

Parameters:

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

    Optional options

Returns:

See Also:



16
17
18
19
20
21
22
23
# File 'lib/gogokit/client/address.rb', line 16

def get_addresses(options = {})
  root = get_root
  object_from_response(GogoKit::PagedResource,
                       GogoKit::AddressesRepresenter,
                       :get,
                       "#{root.links['self'].href}/addresses",
                       options)
end