Class: Chain::AuthorizationGrant

Inherits:
ResponseObject show all
Defined in:
lib/chain/authorization_grant.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)


31
# File 'lib/chain/authorization_grant.rb', line 31

attrib :created_at, rfc3339_time: true

#guard_dataHash (readonly)

A list of parameters that match specific credentials.

Returns:

  • (Hash)


17
# File 'lib/chain/authorization_grant.rb', line 17

attrib :guard_data

#guard_typeString (readonly)

The type of credential that the guard matches against. Only “access_token” and “x509” are allowed.

Returns:

  • (String)


12
# File 'lib/chain/authorization_grant.rb', line 12

attrib :guard_type

#policyString (readonly)

Returns:

  • (String)


21
# File 'lib/chain/authorization_grant.rb', line 21

attrib :policy

#protectedBoolean (readonly)

Whether the grant can be deleted. Only used for internal purposes.

Returns:

  • (Boolean)


26
# File 'lib/chain/authorization_grant.rb', line 26

attrib :protected