Class: TezosClient::Tools::HashToMicheline::Address

Inherits:
Base
  • Object
show all
Defined in:
lib/tezos_client/tools/hash_to_micheline/address.rb

Instance Attribute Summary

Attributes inherited from Base

#data, #type

Instance Method Summary collapse

Methods inherited from Base

#initialize, #value

Constructor Details

This class inherits a constructor from TezosClient::Tools::HashToMicheline::Base

Instance Method Details

#encodeObject



7
8
9
10
# File 'lib/tezos_client/tools/hash_to_micheline/address.rb', line 7

def encode
  raise "#{data} #{data.class} Not a 'String' type" unless data.is_a? ::String
  { string: data }
end