Class: Chain::Transaction::Output
- Inherits:
-
ResponseObject
- Object
- ResponseObject
- Chain::Transaction::Output
- Defined in:
- lib/chain/transaction.rb
Instance Attribute Summary collapse
-
#account_alias ⇒ String
readonly
The alias of the account controlling this output (possibly null if a control program is specified).
-
#account_id ⇒ String
readonly
The id of the account controlling this output (possibly null if a control program is specified).
-
#account_tags ⇒ Hash
readonly
The tags associated with the account controlling this output (possibly null if a control program is specified).
-
#amount ⇒ Integer
readonly
The number of units of the asset being controlled.
-
#asset_alias ⇒ String
readonly
The alias of the asset being controlled (possibly null).
-
#asset_definition ⇒ Hash
readonly
The definition of the asset being controlled (possibly null).
-
#asset_id ⇒ String
readonly
The id of the asset being controlled.
-
#asset_is_local ⇒ Boolean
readonly
A flag indicating whether the asset being controlled is local.
-
#asset_tags ⇒ Hash
readonly
The tags of the asset being controlled (possibly null).
-
#control_program ⇒ String
readonly
The control program which must be satisfied to transfer this output.
-
#id ⇒ String
readonly
The id of the output.
-
#is_local ⇒ Boolean
readonly
A flag indicating if the output is local.
-
#position ⇒ Integer
readonly
The output’s position in a transaction’s list of outputs.
-
#purpose ⇒ String
readonly
The purpose of the output.
-
#reference_data ⇒ Hash
readonly
User specified, unstructured data embedded within an input (possibly null).
-
#type ⇒ String
readonly
The type of the output.
Method Summary
Methods inherited from ResponseObject
#[], #[]=, #initialize, #to_h, #to_json
Constructor Details
This class inherits a constructor from Chain::ResponseObject
Instance Attribute Details
#account_alias ⇒ String (readonly)
The alias of the account controlling this output (possibly null if a control program is specified).
296 |
# File 'lib/chain/transaction.rb', line 296 attrib :account_alias |
#account_id ⇒ String (readonly)
The id of the account controlling this output (possibly null if a control program is specified).
290 |
# File 'lib/chain/transaction.rb', line 290 attrib :account_id |
#account_tags ⇒ Hash (readonly)
The tags associated with the account controlling this output (possibly null if a control program is specified).
302 |
# File 'lib/chain/transaction.rb', line 302 attrib :account_tags |
#amount ⇒ Integer (readonly)
The number of units of the asset being controlled.
284 |
# File 'lib/chain/transaction.rb', line 284 attrib :amount |
#asset_alias ⇒ String (readonly)
The alias of the asset being controlled (possibly null).
264 |
# File 'lib/chain/transaction.rb', line 264 attrib :asset_alias |
#asset_definition ⇒ Hash (readonly)
The definition of the asset being controlled (possibly null).
269 |
# File 'lib/chain/transaction.rb', line 269 attrib :asset_definition |
#asset_id ⇒ String (readonly)
The id of the asset being controlled.
259 |
# File 'lib/chain/transaction.rb', line 259 attrib :asset_id |
#asset_is_local ⇒ Boolean (readonly)
A flag indicating whether the asset being controlled is local.
279 |
# File 'lib/chain/transaction.rb', line 279 attrib :asset_is_local |
#asset_tags ⇒ Hash (readonly)
The tags of the asset being controlled (possibly null).
274 |
# File 'lib/chain/transaction.rb', line 274 attrib :asset_tags |
#control_program ⇒ String (readonly)
The control program which must be satisfied to transfer this output.
307 |
# File 'lib/chain/transaction.rb', line 307 attrib :control_program |
#id ⇒ String (readonly)
The id of the output.
235 |
# File 'lib/chain/transaction.rb', line 235 attrib :id |
#is_local ⇒ Boolean (readonly)
A flag indicating if the output is local.
318 |
# File 'lib/chain/transaction.rb', line 318 attrib :is_local |
#position ⇒ Integer (readonly)
The output’s position in a transaction’s list of outputs.
254 |
# File 'lib/chain/transaction.rb', line 254 attrib :position |
#purpose ⇒ String (readonly)
The purpose of the output.
Possible values are “receive” and “change”.
249 |
# File 'lib/chain/transaction.rb', line 249 attrib :purpose |
#reference_data ⇒ Hash (readonly)
User specified, unstructured data embedded within an input (possibly null).
313 |
# File 'lib/chain/transaction.rb', line 313 attrib :reference_data |
#type ⇒ String (readonly)
The type of the output.
Possible values are “control” and “retire”.
242 |
# File 'lib/chain/transaction.rb', line 242 attrib :type |