Class: Funicular::HTTP::Response

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeResponse

Returns a new instance of Response.

Parameters:

  • status (Integer)
  • data (Object)


13
# File 'sig/http.rbs', line 13

def initialize: (Integer status, untyped data) -> void

Instance Attribute Details

#dataObject (readonly)

Returns the value of attribute data.

Returns:

  • (Object)


9
10
11
# File 'sig/http.rbs', line 9

def data
  @data
end

#okBoolean (readonly)

Returns the value of attribute ok.

Returns:

  • (Boolean)


11
12
13
# File 'sig/http.rbs', line 11

def ok
  @ok
end

#statusInteger (readonly)

Returns the value of attribute status.

Returns:

  • (Integer)


10
11
12
# File 'sig/http.rbs', line 10

def status
  @status
end

Instance Method Details

#error?Boolean

Returns:

  • (Boolean)


14
# File 'sig/http.rbs', line 14

def error?: () -> bool

#error_messageString?

Returns:

  • (String, nil)


15
# File 'sig/http.rbs', line 15

def error_message: () -> String?