Method: Yhd::Client#initialize

Defined in:
lib/yhd/client.rb

#initialize(options) ⇒ Client

Initializes a new Client object

Parameters:

  • options (Hash)

Options Hash (options):

  • :app_key (String)

    Required.

  • :app_secret (String)

    Required.

  • :session_key (String)

    Required.

  • :endpoint (String)

    Optional. API endpoint



22
23
24
25
26
27
# File 'lib/yhd/client.rb', line 22

def initialize(options)
  @app_key = options.fetch(:app_key)
  @app_secret = options.fetch(:app_secret)
  @session_key = options.fetch(:session_key)
  @endpoint = options[:endpoint]
end