Class: Slack::Configuration

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfiguration

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

#channelObject

Returns the value of attribute channel.



18
19
20
# File 'lib/slack.rb', line 18

def channel
  @channel
end

#icon_emojiObject

Returns the value of attribute icon_emoji.



18
19
20
# File 'lib/slack.rb', line 18

def icon_emoji
  @icon_emoji
end

#urlObject

Returns the value of attribute url.



18
19
20
# File 'lib/slack.rb', line 18

def url
  @url
end

#usernameObject

Returns the value of attribute username.



18
19
20
# File 'lib/slack.rb', line 18

def username
  @username
end