Class: TezosClient::Tools::HashToMicheline::Option
- Defined in:
- lib/tezos_client/tools/hash_to_micheline/option.rb
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
Methods inherited from Base
Constructor Details
This class inherits a constructor from TezosClient::Tools::HashToMicheline::Base
Instance Method Details
#encode ⇒ Object
7 8 9 10 11 12 13 14 15 16 17 18 19 |
# File 'lib/tezos_client/tools/hash_to_micheline/option.rb', line 7 def encode return { prim: "None" } if data.nil? { prim: "Some", args: [ TezosClient::Tools::HashToMicheline::Base.new( data: data, type: type[:args][0] ).value ] } end |