class TezosClient::Tools::HashToMicheline::Option
Public Instance Methods
encode()
click to toggle source
# 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