Sha256: e36c75c2be27bd4474face378990eaea2d42c990d1e1549faabeb1fa00bc987a

Contents?: true

Size: 667 Bytes

Versions: 4

Compression:

Stored size: 667 Bytes

Contents

module Citrix
  module Training
    class Credentials
      include Helpers::Initializer

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

      # Set the organizer key.
      attr_accessor :organizer_key

      # Set the account key.
      attr_accessor :account_key

      # Initialize a `Citrix::Training::Credentials` instance.
      def self.build(credentials)
        if credentials.kind_of?(self)
          credentials
        else
          new(credentials)
        end
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
citrix-0.2.2 lib/citrix/training/credentials.rb
citrix-0.2.1 lib/citrix/training/credentials.rb
citrix-0.2.0 lib/citrix/training/credentials.rb
citrix-0.1.0 lib/citrix/training/credentials.rb