Sha256: 4b301c2783a933c340e9f648d9022be6b7760ad191b0fc695c01e687cf32797a

Contents?: true

Size: 350 Bytes

Versions: 1

Compression:

Stored size: 350 Bytes

Contents

module Apitizer
  class Result < SimpleDelegator
    extend Forwardable

    def_delegator :@request, :path
    def_delegator :@response, :code
    def_delegators :__getobj__, :is_a?, :kind_of?, :instance_of?

    def initialize(request:, response:)
      super(response.content)
      @request = request
      @response = response
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
apitizer-0.0.2 lib/apitizer/result.rb