Class: TezosClient::Tools::ConvertToHash::Int

Inherits:
Base
  • Object
show all
Defined in:
lib/tezos_client/tools/convert_to_hash/int.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::ConvertToHash::Base

Instance Method Details

#decodeObject



7
8
9
# File 'lib/tezos_client/tools/convert_to_hash/int.rb', line 7

def decode
  data[:int].to_i
end