Sha256: caceb300d18e5566c5f540a5890311ea2b25f4be70f9d31ef247f5d652c8cd4e
Contents?: true
Size: 437 Bytes
Versions: 1
Compression:
Stored size: 437 Bytes
Contents
# frozen_string_literal: true require 'forwardable' module CapitalOnTap class Response extend Forwardable def_delegators :@http_response, :body, :status, :success? def initialize(http_response) @http_response = http_response end def error @http_response.body.dig(:errorMessage) || @http_response.body.dig(:error) end def metadata @http_response.body.dig(:metaData) end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
capital_on_tap-0.1.7 | lib/capital_on_tap/response.rb |