Class: Blockchain0x::Resources::WalletAssignment

Inherits:
Struct
  • Object
show all
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

Instance Method Summary collapse

Instance Attribute Details

#agent_idObject

Returns the value of attribute agent_id

Returns:

  • (Object)

    the current value of agent_id



25
26
27
# File 'lib/blockchain0x/resources/api_keys.rb', line 25

def agent_id
  @agent_id
end

#scopesObject

Returns the value of attribute scopes

Returns:

  • (Object)

    the current value of scopes



25
26
27
# File 'lib/blockchain0x/resources/api_keys.rb', line 25

def scopes
  @scopes
end

Instance Method Details

#to_h_wireObject



26
27
28
# File 'lib/blockchain0x/resources/api_keys.rb', line 26

def to_h_wire
  { 'agentId' => agent_id, 'scopes' => Array(scopes) }
end