class KintoBox::KintoRequest

Attributes

body[R]
headers[R]
method[R]
path[R]

Public Class Methods

new(client, method, path, body = {}, headers: nil) click to toggle source
# File lib/kinto_box/kinto_request.rb, line 5
def initialize(client, method, path, body = {}, headers: nil)
  @client = client
  @method = method
  @path = path
  @body = body
  @headers = headers
end

Public Instance Methods

execute() click to toggle source
# File lib/kinto_box/kinto_request.rb, line 17
def execute
  @client.send_request(self)
end
to_hash() click to toggle source
# File lib/kinto_box/kinto_request.rb, line 13
def to_hash
  { 'method' => method, 'path' => path, 'body' => body }
end