Class: Braintree::OAuthCredentials

Inherits:
Object
  • Object
show all
Includes:
BaseModule
Defined in:
lib/braintree/oauth_credentials.rb

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Methods included from BaseModule

included

Methods included from BaseModule::Methods

#copy_instance_variables_from_object, #return_object_or_raise, #set_instance_variables_from_hash, #singleton_class

Constructor Details

#initialize(attributes) ⇒ OAuthCredentials

Returns a new instance of OAuthCredentials.



10
11
12
# File 'lib/braintree/oauth_credentials.rb', line 10

def initialize(attributes)
  set_instance_variables_from_hash(attributes)
end

Instance Attribute Details

#access_tokenObject (readonly)

Returns the value of attribute access_token.



5
6
7
# File 'lib/braintree/oauth_credentials.rb', line 5

def access_token
  @access_token
end

#expires_atObject (readonly)

Returns the value of attribute expires_at.



6
7
8
# File 'lib/braintree/oauth_credentials.rb', line 6

def expires_at
  @expires_at
end

#refresh_tokenObject (readonly)

Returns the value of attribute refresh_token.



7
8
9
# File 'lib/braintree/oauth_credentials.rb', line 7

def refresh_token
  @refresh_token
end

#token_typeObject (readonly)

Returns the value of attribute token_type.



8
9
10
# File 'lib/braintree/oauth_credentials.rb', line 8

def token_type
  @token_type
end

Class Method Details

._new(*args) ⇒ Object



18
19
20
# File 'lib/braintree/oauth_credentials.rb', line 18

def self._new(*args)
  self.new(*args)
end