Class: Pago::HTTP::Request

Inherits:
Struct
  • Object
show all
Defined in:
lib/pago/http.rb

Instance Attribute Summary collapse

Instance Attribute Details

#bodyObject

Returns the value of attribute body

Returns:

  • (Object)

    the current value of body



12
13
14
# File 'lib/pago/http.rb', line 12

def body
  @body
end

#headersObject

Returns the value of attribute headers

Returns:

  • (Object)

    the current value of headers



12
13
14
# File 'lib/pago/http.rb', line 12

def headers
  @headers
end

#http_methodString

Returns the HTTP verb, uppercased.

Returns:

  • (String)

    the HTTP verb, uppercased.



12
# File 'lib/pago/http.rb', line 12

Request = Struct.new(:http_method, :url, :headers, :body, keyword_init: true)

#urlObject

Returns the value of attribute url

Returns:

  • (Object)

    the current value of url



12
13
14
# File 'lib/pago/http.rb', line 12

def url
  @url
end