Sha256: 593bfb41c9d7d4daa0c8f1996ddb7e17c38b66cb18bb72ae5e2417e5c67df127
Contents?: true
Size: 393 Bytes
Versions: 6
Compression:
Stored size: 393 Bytes
Contents
module PensioAPI class Request include Mixins::RequestDefaults attr_reader :headers, :body def initialize(path, options={}) super(path, options) @headers = @response.parsed_response['APIResponse']['Header'] @body = @response.parsed_response['APIResponse']['Body'] end def response_contains?(key) @body && @body.has_key?(key) end end end
Version data entries
6 entries across 6 versions & 1 rubygems