Class: Pago::Models::Enums::Unions::Errors::Webhooks::Services::HTTP::Response
- Inherits:
-
Object
- Object
- Pago::Models::Enums::Unions::Errors::Webhooks::Services::HTTP::Response
- Defined in:
- sig/pago.rbs
Instance Attribute Summary collapse
-
#body ⇒ String
Returns the value of attribute body.
-
#headers ⇒ Hash[String, String]
Returns the value of attribute headers.
-
#status ⇒ Integer
Returns the value of attribute status.
Instance Method Summary collapse
-
#initialize ⇒ Response
constructor
A new instance of Response.
- #success? ⇒ Boolean
Constructor Details
#initialize ⇒ Response
Returns a new instance of Response.
150 |
# File 'sig/pago.rbs', line 150
def initialize: (?status: Integer, ?headers: Hash[String, String], ?body: String) -> void
|
Instance Attribute Details
#body ⇒ String
Returns the value of attribute body.
148 149 150 |
# File 'sig/pago.rbs', line 148 def body @body end |
#headers ⇒ Hash[String, String]
Returns the value of attribute headers.
147 148 149 |
# File 'sig/pago.rbs', line 147 def headers @headers end |
#status ⇒ Integer
Returns the value of attribute status.
146 147 148 |
# File 'sig/pago.rbs', line 146 def status @status end |
Instance Method Details
#success? ⇒ Boolean
151 |
# File 'sig/pago.rbs', line 151
def success?: () -> bool
|