Sha256: c7030fb73629c656334f381467ae295e277578444ccc7565a9be3eac054157ad
Contents?: true
Size: 444 Bytes
Versions: 21
Compression:
Stored size: 444 Bytes
Contents
# Response data is data provided through the response body # but made accssible in the ruby world module LHC::Response::Data::Base def as_json @json ||= (@data || response.format.as_json(response)) end def as_open_struct @open_struct ||= if @data JSON.parse(@data.to_json, object_class: OpenStruct) else response.format.as_open_struct(response) end end private attr_reader :response end
Version data entries
21 entries across 21 versions & 1 rubygems