Sha256: adae646879084d03aa05264ff2a9edca08fd9e11039bdbc122f73a34aa97578b
Contents?: true
Size: 396 Bytes
Versions: 3
Compression:
Stored size: 396 Bytes
Contents
# frozen_string_literal: true module CapitalOnTap class Response def initialize(http_response) @http_response = http_response end def body @http_response.body end def success? @http_response.success? end def error @http_response.body.dig(:errorMessage) end def metadata @http_response.body.dig(:metaData) end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
capital_on_tap-0.1.5 | lib/capital_on_tap/response.rb |
capital_on_tap-0.1.4 | lib/capital_on_tap/response.rb |
capital_on_tap-0.1.3 | lib/capital_on_tap/response.rb |