Class: Citrix::Training::Credentials
- Inherits:
-
Object
- Object
- Citrix::Training::Credentials
- Includes:
- Helpers::Initializer
- Defined in:
- lib/citrix/training/credentials.rb
Instance Attribute Summary collapse
-
#account_key ⇒ Object
Set the account key.
-
#oauth_token ⇒ Object
Set the OAuth token.
-
#organizer_key ⇒ Object
Set the organizer key.
Class Method Summary collapse
-
.build(credentials) ⇒ Object
Initialize a ‘Citrix::Training::Credentials` instance.
Methods included from Helpers::Initializer
Instance Attribute Details
#account_key ⇒ Object
Set the account key.
15 16 17 |
# File 'lib/citrix/training/credentials.rb', line 15 def account_key @account_key end |
#oauth_token ⇒ Object
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_key ⇒ Object
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 |