Class: IOTA::Models::Base
- Inherits:
-
Object
- Object
- IOTA::Models::Base
- Defined in:
- lib/iota/models/base.rb
Instance Method Summary collapse
Instance Method Details
#inspect ⇒ Object
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 |