Class: Pago::Models::Enums::Unions::Errors::Webhooks::Services::HTTP::Response

Inherits:
Object
  • Object
show all
Defined in:
sig/pago.rbs

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeResponse

Returns a new instance of Response.

Parameters:

  • status: (Integer)
  • headers: (Hash[String, String])
  • body: (String)


150
# File 'sig/pago.rbs', line 150

def initialize: (?status: Integer, ?headers: Hash[String, String], ?body: String) -> void

Instance Attribute Details

#bodyString

Returns the value of attribute body.

Returns:

  • (String)


148
149
150
# File 'sig/pago.rbs', line 148

def body
  @body
end

#headersHash[String, String]

Returns the value of attribute headers.

Returns:

  • (Hash[String, String])


147
148
149
# File 'sig/pago.rbs', line 147

def headers
  @headers
end

#statusInteger

Returns the value of attribute status.

Returns:

  • (Integer)


146
147
148
# File 'sig/pago.rbs', line 146

def status
  @status
end

Instance Method Details

#success?Boolean

Returns:

  • (Boolean)


151
# File 'sig/pago.rbs', line 151

def success?: () -> bool