Exception: Hitch::AccessToken::OAuthError

Inherits:
StandardError
  • Object
show all
Defined in:
app/models/hitch/access_token.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(oauth_code, description) ⇒ OAuthError

Returns a new instance of OAuthError.



30
31
32
33
34
# File 'app/models/hitch/access_token.rb', line 30

def initialize(oauth_code, description)
  @oauth_code = oauth_code
  @description = description
  super(description)
end

Instance Attribute Details

#descriptionObject (readonly)

Returns the value of attribute description.



28
29
30
# File 'app/models/hitch/access_token.rb', line 28

def description
  @description
end

#oauth_codeObject (readonly)

Returns the value of attribute oauth_code.



28
29
30
# File 'app/models/hitch/access_token.rb', line 28

def oauth_code
  @oauth_code
end