Class: Funicular::HTTP::Response
- Inherits:
-
Object
- Object
- Funicular::HTTP::Response
- Defined in:
- sig/http.rbs
Instance Attribute Summary collapse
-
#data ⇒ Object
readonly
Returns the value of attribute data.
-
#ok ⇒ Boolean
readonly
Returns the value of attribute ok.
-
#status ⇒ Integer
readonly
Returns the value of attribute status.
Instance Method Summary collapse
- #error? ⇒ Boolean
- #error_message ⇒ String?
-
#initialize ⇒ Response
constructor
A new instance of Response.
Constructor Details
#initialize ⇒ Response
Returns a new instance of Response.
13 |
# File 'sig/http.rbs', line 13
def initialize: (Integer status, untyped data) -> void
|
Instance Attribute Details
#data ⇒ Object (readonly)
Returns the value of attribute data.
9 10 11 |
# File 'sig/http.rbs', line 9 def data @data end |
#ok ⇒ Boolean (readonly)
Returns the value of attribute ok.
11 12 13 |
# File 'sig/http.rbs', line 11 def ok @ok end |
#status ⇒ Integer (readonly)
Returns the value of attribute status.
10 11 12 |
# File 'sig/http.rbs', line 10 def status @status end |
Instance Method Details
#error? ⇒ Boolean
14 |
# File 'sig/http.rbs', line 14
def error?: () -> bool
|
#error_message ⇒ String?
15 |
# File 'sig/http.rbs', line 15
def error_message: () -> String?
|