Class: Slack::Http::Result

Inherits:
Object
  • Object
show all
Defined in:
lib/slack/http/result.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#bodyObject (readonly)

Returns the value of attribute body.



4
5
6
# File 'lib/slack/http/result.rb', line 4

def body
  @body
end

#codeObject (readonly)

Returns the value of attribute code.



4
5
6
# File 'lib/slack/http/result.rb', line 4

def code
  @code
end

#headerObject (readonly)

Returns the value of attribute header.



4
5
6
# File 'lib/slack/http/result.rb', line 4

def header
  @header
end

#msgObject (readonly)

Returns the value of attribute msg.



4
5
6
# File 'lib/slack/http/result.rb', line 4

def msg
  @msg
end