Class: Hash

Inherits:
Object show all
Defined in:
lib/astroboa-rb/client.rb

Instance Method Summary collapse

Instance Method Details

#to_openstructObject



356
357
358
359
360
# File 'lib/astroboa-rb/client.rb', line 356

def to_openstruct
  mapped = {}
  each{ |key,value| mapped[key] = value.to_openstruct }
  OpenStruct.new(mapped)
end