Module: GogoKit::Client::Root

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

Overview

GogoKit::Client methods for getting the root resource

Instance Method Summary collapse

Methods included from Utils

#object_from_response

Instance Method Details

#get_root(options = {}) ⇒ GogoKit::Resource::Root

Gets the root of the viagogo API service.

Parameters:

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

    Optional options

Returns:

  • (GogoKit::Resource::Root)

    The root resource

See Also:



15
16
17
18
19
20
21
# File 'lib/gogokit/client/root.rb', line 15

def get_root(options = {})
  object_from_response(GogoKit::Root,
                       GogoKit::RootRepresenter,
                       :get,
                       api_root_endpoint,
                       options)
end