Class: Sequence::Action

Inherits:
ResponseObject show all
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

Method Summary

Methods inherited from ResponseObject

#[], #[]=, #initialize, #to_h, #to_json

Constructor Details

This class inherits a constructor from Sequence::ResponseObject

Instance Attribute Details

#amountObject (readonly)

Summation of action amounts.



21
# File 'lib/sequence/action.rb', line 21

attrib :amount

#destination_account_idObject (readonly)

The ID of the destination account affected by the action.



64
# File 'lib/sequence/action.rb', line 64

attrib :destination_account_id

#flavor_idObject (readonly)

The ID of the flavor held by the action.



47
# File 'lib/sequence/action.rb', line 47

attrib :flavor_id

#idObject (readonly)

A unique ID.



32
# File 'lib/sequence/action.rb', line 32

attrib :id

#snapshotObject (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_idObject (readonly)

The ID of the source account executing the action.



59
# File 'lib/sequence/action.rb', line 59

attrib :source_account_id

#tagsObject (readonly)

User-specified key-value data embedded in the action.



69
# File 'lib/sequence/action.rb', line 69

attrib :tags

#timestampObject (readonly)

Time of the action.



42
# File 'lib/sequence/action.rb', line 42

attrib :timestamp, rfc3339_time: true

#transaction_idObject (readonly)

The ID of the transaction in which the action appears.



37
# File 'lib/sequence/action.rb', line 37

attrib :transaction_id

#typeObject (readonly)

The type of the action. Currently, there are three options: “issue”, “transfer”, “retire”.



27
# File 'lib/sequence/action.rb', line 27

attrib :type