Class: Braintree::OAuthCredentials
- Inherits:
- 
      Object
      
        - Object
- Braintree::OAuthCredentials
 
- Includes:
- BaseModule
- Defined in:
- lib/braintree/oauth_credentials.rb
Instance Attribute Summary collapse
- 
  
    
      #access_token  ⇒ Object 
    
    
  
  
  
  
    
      readonly
    
    
  
  
  
  
  
  
    Returns the value of attribute access_token. 
- 
  
    
      #expires_at  ⇒ Object 
    
    
  
  
  
  
    
      readonly
    
    
  
  
  
  
  
  
    Returns the value of attribute expires_at. 
- 
  
    
      #refresh_token  ⇒ Object 
    
    
  
  
  
  
    
      readonly
    
    
  
  
  
  
  
  
    Returns the value of attribute refresh_token. 
- 
  
    
      #token_type  ⇒ Object 
    
    
  
  
  
  
    
      readonly
    
    
  
  
  
  
  
  
    Returns the value of attribute token_type. 
Class Method Summary collapse
Instance Method Summary collapse
- 
  
    
      #initialize(attributes)  ⇒ OAuthCredentials 
    
    
  
  
  
    constructor
  
  
  
  
  
  
  
    A new instance of OAuthCredentials. 
Methods included from BaseModule
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_token ⇒ Object (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_at ⇒ Object (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_token ⇒ Object (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_type ⇒ Object (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 |