Class: Slack::Channel
- Inherits:
-
Object
- Object
- Slack::Channel
- Defined in:
- lib/edi/slack/channel.rb
Instance Attribute Summary collapse
-
#id ⇒ Object
Returns the value of attribute id.
-
#name ⇒ Object
Returns the value of attribute name.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(id:, name:) ⇒ Channel
constructor
A new instance of Channel.
Constructor Details
#initialize(id:, name:) ⇒ Channel
Returns a new instance of Channel.
4 5 6 7 |
# File 'lib/edi/slack/channel.rb', line 4 def initialize(id:, name:) @id = id @name = name end |
Instance Attribute Details
#id ⇒ Object
Returns the value of attribute id.
3 4 5 |
# File 'lib/edi/slack/channel.rb', line 3 def id @id end |
#name ⇒ Object
Returns the value of attribute name.
3 4 5 |
# File 'lib/edi/slack/channel.rb', line 3 def name @name end |