Sha256: 9937afcc69c90b7ce6cbedcc5f96552b8d33fa93df69aa1bf08c1b0214074367

Contents?: true

Size: 246 Bytes

Versions: 2

Compression:

Stored size: 246 Bytes

Contents

module Hipbot
  class HttpResponse < Struct.new(:raw_response)
    def body
      raw_response.response
    end

    def code
      raw_response.response_header.status
    end

    def headers
      raw_response.response_header
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
hipbot-0.1.0 lib/hipbot/http_response.rb
hipbot-0.0.5 lib/hipbot/http_response.rb