Module: Ketra

Defined in:
lib/ketra.rb,
lib/ketra/client.rb,
lib/ketra/version.rb,
lib/ketra/commands.rb

Overview

This module is used to set the client id, client secret and provide access to the actual client.

Defined Under Namespace

Modules: Commands Classes: Client

Constant Summary collapse

VERSION =

current RubyGem version

"0.6.0"

Class Attribute Summary collapse

Class Method Summary collapse

Class Attribute Details

.client_idObject

Client ID provided by Ketra



19
20
21
# File 'lib/ketra.rb', line 19

def client_id
  @client_id
end

.client_secretObject

Client Secret proviced by Ketra



21
22
23
# File 'lib/ketra.rb', line 21

def client_secret
  @client_secret
end

Class Method Details

.clientObject

Client used for communicating with the Ketra API. You must call client.Authorize with valid credentials before using any Commands.



29
30
31
# File 'lib/ketra.rb', line 29

def self.client
  @client ||= Client.new client_id, client_secret
end