Class: Blockchain0x::Resources::WalletAssignment
- Inherits:
-
Struct
- Object
- Struct
- Blockchain0x::Resources::WalletAssignment
- Defined in:
- lib/blockchain0x/resources/api_keys.rb
Overview
WalletAssignment is the typed per-wallet entry for the workspace-flavor create body. Splits an ‘agent_id` + `scopes` array. The 4 valid scopes are `read_wallet_metadata`, `manage_wallet_metadata`, `pay_bills`, `receive_money`.
Instance Attribute Summary collapse
-
#agent_id ⇒ Object
Returns the value of attribute agent_id.
-
#scopes ⇒ Object
Returns the value of attribute scopes.
Instance Method Summary collapse
Instance Attribute Details
#agent_id ⇒ Object
Returns the value of attribute agent_id
25 26 27 |
# File 'lib/blockchain0x/resources/api_keys.rb', line 25 def agent_id @agent_id end |
#scopes ⇒ Object
Returns the value of attribute scopes
25 26 27 |
# File 'lib/blockchain0x/resources/api_keys.rb', line 25 def scopes @scopes end |
Instance Method Details
#to_h_wire ⇒ Object
26 27 28 |
# File 'lib/blockchain0x/resources/api_keys.rb', line 26 def to_h_wire { 'agentId' => agent_id, 'scopes' => Array(scopes) } end |