Sha256: 43e9ddc30b1ac7c428210ae786e2955dc352f7f5b5daa795faa2e28bcd65c1fe

Contents?: true

Size: 231 Bytes

Versions: 4

Compression:

Stored size: 231 Bytes

Contents

module Restspec
  module Endpoints
    class Request < Struct.new(:method, :url, :headers, :payload)
      attr_accessor :endpoint

      def raw_payload
        @raw_payload ||= (payload || '').to_json
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
restspec-0.0.4 lib/restspec/endpoints/request.rb
restspec-0.0.3 lib/restspec/endpoints/request.rb
restspec-0.0.2 lib/restspec/endpoints/request.rb
restspec-0.0.1 lib/restspec/endpoints/request.rb