Class: Sequence::ResponseObject::Snapshot

Inherits:
Object
  • Object
show all
Defined in:
lib/sequence/response_object.rb

Instance Method Summary collapse

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_tagsHash

A snapshot of the actions’s tags at the time of action creation

Returns:

  • (Hash)


110
111
112
# File 'lib/sequence/response_object.rb', line 110

def action_tags
  @data['action_tags']
end

#destination_account_tagsHash

A snapshot of the destination account’s tags at the time of action creation

Returns:

  • (Hash)


117
118
119
# File 'lib/sequence/response_object.rb', line 117

def 
  @data['destination_account_tags']
end

#flavor_tagsHash

A snapshot of the flavor’s tags at the time of action creation

Returns:

  • (Hash)


123
124
125
# File 'lib/sequence/response_object.rb', line 123

def flavor_tags
  @data['flavor_tags']
end

#source_account_tagsHash

A snapshot of the source account’s tags at the time of action creation

Returns:

  • (Hash)


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_tagsHash

A snapshot of the token’s tags at the time of action creation

Returns:

  • (Hash)


135
136
137
# File 'lib/sequence/response_object.rb', line 135

def token_tags
  @data['token_tags']
end