Class: Cafmal::Request::Get

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(url, headers) ⇒ Get

Returns a new instance of Get.



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

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

Instance Attribute Details

#responseObject (readonly)

Returns the value of attribute response.



16
17
18
# File 'lib/cafmal/request.rb', line 16

def response
  @response
end