Class: Slack::Configuration
- Inherits:
-
Object
- Object
- Slack::Configuration
- Defined in:
- lib/slack.rb
Instance Attribute Summary collapse
-
#channel ⇒ Object
Returns the value of attribute channel.
-
#icon_emoji ⇒ Object
Returns the value of attribute icon_emoji.
-
#url ⇒ Object
Returns the value of attribute url.
-
#username ⇒ Object
Returns the value of attribute username.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
20 21 22 23 24 25 |
# File 'lib/slack.rb', line 20 def initialize @channel = '#general' @icon_emoji = ':ghost:' @url = '' @username = 'slackbot' end |
Instance Attribute Details
#channel ⇒ Object
Returns the value of attribute channel.
18 19 20 |
# File 'lib/slack.rb', line 18 def channel @channel end |
#icon_emoji ⇒ Object
Returns the value of attribute icon_emoji.
18 19 20 |
# File 'lib/slack.rb', line 18 def icon_emoji @icon_emoji end |
#url ⇒ Object
Returns the value of attribute url.
18 19 20 |
# File 'lib/slack.rb', line 18 def url @url end |
#username ⇒ Object
Returns the value of attribute username.
18 19 20 |
# File 'lib/slack.rb', line 18 def username @username end |