Class: Sequence::ResponseObject::Snapshot
- Inherits:
-
Object
- Object
- Sequence::ResponseObject::Snapshot
- Defined in:
- lib/sequence/response_object.rb
Instance Method Summary collapse
- #[](key) ⇒ Object
-
#action_tags ⇒ Hash
A snapshot of the actions’s tags at the time of action creation.
-
#destination_account_tags ⇒ Hash
A snapshot of the destination account’s tags at the time of action creation.
-
#flavor_tags ⇒ Hash
A snapshot of the flavor’s tags at the time of action creation.
-
#initialize(data) ⇒ Snapshot
constructor
A new instance of Snapshot.
-
#source_account_tags ⇒ Hash
A snapshot of the source account’s tags at the time of action creation.
- #to_json(_opts = nil) ⇒ Object
-
#token_tags ⇒ Hash
A snapshot of the token’s tags at the time of action creation.
Constructor Details
#initialize(data) ⇒ Snapshot
Returns a new instance of Snapshot.
96 97 98 |
# File 'lib/sequence/response_object.rb', line 96 def initialize(data) @data = data end |
Instance Method Details
#[](key) ⇒ Object
100 101 102 |
# File 'lib/sequence/response_object.rb', line 100 def [](key) @data[key] end |
#action_tags ⇒ Hash
A snapshot of the actions’s tags at the time of action creation
110 111 112 |
# File 'lib/sequence/response_object.rb', line 110 def @data['action_tags'] end |
#destination_account_tags ⇒ Hash
A snapshot of the destination account’s tags at the time of action creation
117 118 119 |
# File 'lib/sequence/response_object.rb', line 117 def @data['destination_account_tags'] end |
#flavor_tags ⇒ Hash
A snapshot of the flavor’s tags at the time of action creation
123 124 125 |
# File 'lib/sequence/response_object.rb', line 123 def @data['flavor_tags'] end |
#source_account_tags ⇒ Hash
A snapshot of the source account’s tags at the time of action creation
129 130 131 |
# File 'lib/sequence/response_object.rb', line 129 def @data['source_account_tags'] end |
#to_json(_opts = nil) ⇒ Object
104 105 106 |
# File 'lib/sequence/response_object.rb', line 104 def to_json(_opts = nil) @data.to_json end |
#token_tags ⇒ Hash
A snapshot of the token’s tags at the time of action creation
135 136 137 |
# File 'lib/sequence/response_object.rb', line 135 def @data['token_tags'] end |