Sha256: c181526a9f07d3fa552a83b898f04a085c69d83466f3ed9a9ebf69ca28bcfda3
Contents?: true
Size: 439 Bytes
Versions: 4
Compression:
Stored size: 439 Bytes
Contents
module PaxfulClient class BaseResponse include APIClientBase::Response.module attribute :body, Object, lazy: true, default: :default_body attribute :parsed_body, String, lazy: true, default: :default_parsed_body attribute :error_message, String, lazy: true private def default_body raw_response.body end def default_parsed_body JSON.parse(body).with_indifferent_access end end end
Version data entries
4 entries across 4 versions & 1 rubygems