Class: Pago::HTTP::Request
- Inherits:
-
Struct
- Object
- Struct
- Pago::HTTP::Request
- Defined in:
- lib/pago/http.rb
Instance Attribute Summary collapse
-
#body ⇒ Object
Returns the value of attribute body.
-
#headers ⇒ Object
Returns the value of attribute headers.
-
#http_method ⇒ String
The HTTP verb, uppercased.
-
#url ⇒ Object
Returns the value of attribute url.
Instance Attribute Details
#body ⇒ Object
Returns the value of attribute body
12 13 14 |
# File 'lib/pago/http.rb', line 12 def body @body end |
#headers ⇒ Object
Returns the value of attribute headers
12 13 14 |
# File 'lib/pago/http.rb', line 12 def headers @headers end |
#http_method ⇒ String
Returns the HTTP verb, uppercased.
12 |
# File 'lib/pago/http.rb', line 12 Request = Struct.new(:http_method, :url, :headers, :body, keyword_init: true) |
#url ⇒ Object
Returns the value of attribute url
12 13 14 |
# File 'lib/pago/http.rb', line 12 def url @url end |