Class: Veeqo::Request

Inherits:
Object
  • Object
show all
Defined in:
lib/veeqo/request.rb

Instance Method Summary collapse

Constructor Details

#initialize(http_method, path, attributes = {}) ⇒ Request

Returns a new instance of Request.



8
9
10
11
12
# File 'lib/veeqo/request.rb', line 8

def initialize(http_method, path, attributes = {})
  @path = path
  @http_method = http_method
  @attributes = attributes
end

Instance Method Details

#parseObject



18
19
20
# File 'lib/veeqo/request.rb', line 18

def parse
  Response.new(run).parse
end

#runObject



14
15
16
# File 'lib/veeqo/request.rb', line 14

def run
  valid_response || raise_response_error
end