Class: IOTA::Models::Base

Inherits:
Object
  • Object
show all
Defined in:
lib/iota/models/base.rb

Direct Known Subclasses

Account, Bundle, Input, Seed, Transaction, Transfer

Instance Method Summary collapse

Instance Method Details

#inspectObject


4
5
6
# File 'lib/iota/models/base.rb', line 4

def inspect
  self.to_s
end

#symbolize_keys(hash) ⇒ Object


8
9
10
# File 'lib/iota/models/base.rb', line 8

def symbolize_keys(hash)
  hash.inject({}){ |h,(k,v)| h[k.to_sym] = v; h }
end