Sha256: 09420c640b078b670ac4aa3380c4b4ee641d9e27c5b73f3f98ab7138be7eb68c

Contents?: true

Size: 240 Bytes

Versions: 12

Compression:

Stored size: 240 Bytes

Contents

module RestfulResource
  class Request
    attr_reader :body, :method, :url, :accept

    def initialize(method, url, accept: 'application/json', body: nil)
      @method, @url, @accept, @body = method, url, accept, body
    end
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
restful_resource-1.6.0 lib/restful_resource/request.rb
restful_resource-1.5.0 lib/restful_resource/request.rb
restful_resource-1.4.3 lib/restful_resource/request.rb
restful_resource-1.4.2 lib/restful_resource/request.rb
restful_resource-1.4.1 lib/restful_resource/request.rb
restful_resource-1.4.0 lib/restful_resource/request.rb
restful_resource-1.3.0 lib/restful_resource/request.rb
restful_resource-1.2.2 lib/restful_resource/request.rb
restful_resource-1.2.1 lib/restful_resource/request.rb
restful_resource-1.2.0 lib/restful_resource/request.rb
restful_resource-1.1.0 lib/restful_resource/request.rb
restful_resource-1.0.0 lib/restful_resource/request.rb