Class: Pago::HTTP::Response

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#bodyObject

Returns the value of attribute body

Returns:

  • (Object)

    the current value of body



14
15
16
# File 'lib/pago/http.rb', line 14

def body
  @body
end

#headersObject

Returns the value of attribute headers

Returns:

  • (Object)

    the current value of headers



14
15
16
# File 'lib/pago/http.rb', line 14

def headers
  @headers
end

#statusObject

Returns the value of attribute status

Returns:

  • (Object)

    the current value of status



14
15
16
# File 'lib/pago/http.rb', line 14

def status
  @status
end

Instance Method Details

#success?Boolean

Returns:

  • (Boolean)


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

def success? = status >= 200 && status < 300