Class: Sequence::Action
- Inherits:
-
ResponseObject
- Object
- ResponseObject
- Sequence::Action
- Defined in:
- lib/sequence/action.rb
Overview
Each transaction contains one or more actions. Action queries are designed to provide insights into those actions. There are two types of queries you can run against them; one is “list”, one is “sum”. List query simply returns a list of Action objects that match the filter; Sum query sums over the amount fields based on the filter and the group_by param and return ActionSum objects. Different from other regular API objects, the amount field in ActionSum represents the summation of the amount fields of those matching actions, and all other fields represent the parameters by which to group actions.
Defined Under Namespace
Classes: ClientModule, ListQuery, SumQuery
Instance Attribute Summary collapse
-
#amount ⇒ Object
readonly
Summation of action amounts.
-
#destination_account_id ⇒ Object
readonly
The ID of the destination account affected by the action.
-
#flavor_id ⇒ Object
readonly
The ID of the flavor held by the action.
-
#id ⇒ Object
readonly
A unique ID.
-
#snapshot ⇒ Object
readonly
A copy of the associated tags (flavor, source account, destination account, action, and token) as they existed at the time of the transaction.
-
#source_account_id ⇒ Object
readonly
The ID of the source account executing the action.
-
#tags ⇒ Object
readonly
User-specified key-value data embedded in the action.
-
#timestamp ⇒ Object
readonly
Time of the action.
-
#transaction_id ⇒ Object
readonly
The ID of the transaction in which the action appears.
-
#type ⇒ Object
readonly
The type of the action.
Method Summary
Methods inherited from ResponseObject
#[], #[]=, #initialize, #to_h, #to_json
Constructor Details
This class inherits a constructor from Sequence::ResponseObject
Instance Attribute Details
#amount ⇒ Object (readonly)
Summation of action amounts.
21 |
# File 'lib/sequence/action.rb', line 21 attrib :amount |
#destination_account_id ⇒ Object (readonly)
The ID of the destination account affected by the action.
64 |
# File 'lib/sequence/action.rb', line 64 attrib :destination_account_id |
#flavor_id ⇒ Object (readonly)
The ID of the flavor held by the action.
47 |
# File 'lib/sequence/action.rb', line 47 attrib :flavor_id |
#id ⇒ Object (readonly)
A unique ID.
32 |
# File 'lib/sequence/action.rb', line 32 attrib :id |
#snapshot ⇒ Object (readonly)
A copy of the associated tags (flavor, source account, destination account, action, and token) as they existed at the time of the transaction.
54 |
# File 'lib/sequence/action.rb', line 54 attrib :snapshot, snapshot: true |
#source_account_id ⇒ Object (readonly)
The ID of the source account executing the action.
59 |
# File 'lib/sequence/action.rb', line 59 attrib :source_account_id |
#tags ⇒ Object (readonly)
User-specified key-value data embedded in the action.
69 |
# File 'lib/sequence/action.rb', line 69 attrib :tags |
#timestamp ⇒ Object (readonly)
Time of the action.
42 |
# File 'lib/sequence/action.rb', line 42 attrib :timestamp, rfc3339_time: true |
#transaction_id ⇒ Object (readonly)
The ID of the transaction in which the action appears.
37 |
# File 'lib/sequence/action.rb', line 37 attrib :transaction_id |
#type ⇒ Object (readonly)
The type of the action. Currently, there are three options: “issue”, “transfer”, “retire”.
27 |
# File 'lib/sequence/action.rb', line 27 attrib :type |