Class: Istox::MyOpenStruct

Inherits:
OpenStruct
  • Object
show all
Defined in:
lib/istox/helpers/my_open_struct.rb

Instance Method Summary collapse

Instance Method Details

#to_hashObject



9
10
11
# File 'lib/istox/helpers/my_open_struct.rb', line 9

def to_hash
  ::Istox::CommonHelper.deep_to_h(self)
end

#to_json(*_args) ⇒ Object



3
4
5
6
7
# File 'lib/istox/helpers/my_open_struct.rb', line 3

def to_json(*_args)
  hash = ::Istox::CommonHelper.deep_to_h(self)

  hash.to_json
end