Class: Cafmal::Request::Post

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(url, body, headers) ⇒ Post

Returns a new instance of Post.



10
11
12
# File 'lib/cafmal/request.rb', line 10

def initialize(url, body, headers)
  @response = HTTParty.post(url, body: body, headers: headers)
end

Instance Attribute Details

#responseObject (readonly)

Returns the value of attribute response.



8
9
10
# File 'lib/cafmal/request.rb', line 8

def response
  @response
end