Class: Dnsimple::Struct::OauthToken

Inherits:
Base
  • Object
show all
Defined in:
lib/dnsimple/struct/oauth_token.rb

Instance Attribute Summary collapse

Method Summary

Methods inherited from Base

#initialize

Constructor Details

This class inherits a constructor from Dnsimple::Struct::Base

Instance Attribute Details

#access_tokenString

Returns The token you can use to authenticate.

Returns:

  • (String)

    The token you can use to authenticate.



7
8
9
# File 'lib/dnsimple/struct/oauth_token.rb', line 7

def access_token
  @access_token
end

#account_idInteger

Returns The account ID in DNSimple this token belongs to.

Returns:

  • (Integer)

    The account ID in DNSimple this token belongs to.



16
17
18
# File 'lib/dnsimple/struct/oauth_token.rb', line 16

def 
  @account_id
end

#scopeString

Returns The token scope (not used for now).

Returns:

  • (String)

    The token scope (not used for now).



13
14
15
# File 'lib/dnsimple/struct/oauth_token.rb', line 13

def scope
  @scope
end

#token_typeString

Returns The token type.

Returns:

  • (String)

    The token type.



10
11
12
# File 'lib/dnsimple/struct/oauth_token.rb', line 10

def token_type
  @token_type
end