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.



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

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.



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

def 
  @account_id
end

#scopeString

Returns The token scope (not used for now).

Returns:

  • (String)

    The token scope (not used for now).



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

def scope
  @scope
end

#token_typeString

Returns The token type.

Returns:

  • (String)

    The token type.



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

def token_type
  @token_type
end