Class: Citrix::Training::Credentials

Inherits:
Object
  • Object
show all
Includes:
Helpers::Initializer
Defined in:
lib/citrix/training/credentials.rb

Instance Attribute Summary collapse

Class Method Summary collapse

Methods included from Helpers::Initializer

#initialize

Instance Attribute Details

#account_keyObject

Set the account key.



15
16
17
# File 'lib/citrix/training/credentials.rb', line 15

def 
  @account_key
end

#oauth_tokenObject

Set the OAuth token. You can use the [Omniauth::Citrix](github.com/fnando/omniauth-citrix) for OAuth2 authentication on Rack-based applications.



9
10
11
# File 'lib/citrix/training/credentials.rb', line 9

def oauth_token
  @oauth_token
end

#organizer_keyObject

Set the organizer key.



12
13
14
# File 'lib/citrix/training/credentials.rb', line 12

def organizer_key
  @organizer_key
end

Class Method Details

.build(credentials) ⇒ Object

Initialize a ‘Citrix::Training::Credentials` instance.



18
19
20
21
22
23
24
# File 'lib/citrix/training/credentials.rb', line 18

def self.build(credentials)
  if credentials.kind_of?(self)
    credentials
  else
    new(credentials)
  end
end