Class: TezosClient::Tools::ConvertToHash::List
- Inherits:
-
Base
- Object
- Base
- TezosClient::Tools::ConvertToHash::List
show all
- Defined in:
- lib/tezos_client/tools/convert_to_hash/list.rb
Instance Attribute Summary
Attributes inherited from Base
#data, #type
Instance Method Summary
collapse
Methods inherited from Base
#initialize, #value
Instance Method Details
#decode ⇒ Object
7
8
9
10
11
12
13
14
|
# File 'lib/tezos_client/tools/convert_to_hash/list.rb', line 7
def decode
data.map do |elem|
TezosClient::Tools::ConvertToHash::Base.new(
data: elem,
type: elem_type
).value
end
end
|
#elem_type ⇒ Object
16
17
18
|
# File 'lib/tezos_client/tools/convert_to_hash/list.rb', line 16
def elem_type
type[:args].first
end
|