class LHC::Response::Data::Item
def [](key)
def [](key) @hash ||= as_json.with_indifferent_access @hash[key] end
def initialize(response, data: nil)
def initialize(response, data: nil) @response = response @data = data set_dynamic_accessor_methods super(as_json) end
def set_dynamic_accessor_methods
def set_dynamic_accessor_methods as_json.keys.each do |key| define_singleton_method key do |*args| as_open_struct.send key, *args end end end