Class: Slack::Http::Result
- Inherits:
-
Object
- Object
- Slack::Http::Result
- Defined in:
- lib/slack/http/result.rb
Instance Attribute Summary collapse
-
#body ⇒ Object
readonly
Returns the value of attribute body.
-
#code ⇒ Object
readonly
Returns the value of attribute code.
-
#header ⇒ Object
readonly
Returns the value of attribute header.
-
#msg ⇒ Object
readonly
Returns the value of attribute msg.
Instance Method Summary collapse
-
#initialize(code: nil, msg: nil, header: nil, body: nil) ⇒ Result
constructor
A new instance of Result.
Constructor Details
#initialize(code: nil, msg: nil, header: nil, body: nil) ⇒ Result
Returns a new instance of Result.
5 6 7 8 9 10 |
# File 'lib/slack/http/result.rb', line 5 def initialize(code: nil, msg: nil, header: nil, body: nil) @code = code @msg = msg @header = header @body = body end |
Instance Attribute Details
#body ⇒ Object (readonly)
Returns the value of attribute body.
4 5 6 |
# File 'lib/slack/http/result.rb', line 4 def body @body end |
#code ⇒ Object (readonly)
Returns the value of attribute code.
4 5 6 |
# File 'lib/slack/http/result.rb', line 4 def code @code end |
#header ⇒ Object (readonly)
Returns the value of attribute header.
4 5 6 |
# File 'lib/slack/http/result.rb', line 4 def header @header end |
#msg ⇒ Object (readonly)
Returns the value of attribute msg.
4 5 6 |
# File 'lib/slack/http/result.rb', line 4 def msg @msg end |