Class: Chain::AccessToken

Inherits:
ResponseObject show all
Defined in:
lib/chain/access_token.rb

Defined Under Namespace

Classes: ClientModule

Instance Attribute Summary collapse

Method Summary

Methods inherited from ResponseObject

#[], #[]=, #initialize, #to_h, #to_json

Constructor Details

This class inherits a constructor from Chain::ResponseObject

Instance Attribute Details

#created_atTime (readonly)

Timestamp of token creation.

Returns:

  • (Time)


27
# File 'lib/chain/access_token.rb', line 27

attrib :created_at, rfc3339_time: true

#idString (readonly)

User specified, unique identifier.

Returns:

  • (String)


11
# File 'lib/chain/access_token.rb', line 11

attrib :id

#tokenString (readonly)

Only returned in the response from Chain::AccessToken::ClientModule#create.

Returns:

  • (String)


16
# File 'lib/chain/access_token.rb', line 16

attrib :token

#typeString (readonly)

Deprecated.

Either ‘client’ or ‘network’. Ignore in 1.2 or greater.

Returns:

  • (String)


22
# File 'lib/chain/access_token.rb', line 22

attrib :type