Class: SlackBot::MenuOptions

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(current_user:, params:, config: nil) ⇒ MenuOptions

Returns a new instance of MenuOptions.



4
5
6
7
8
# File 'lib/slack_bot/menu_options.rb', line 4

def initialize(current_user:, params:, config: nil)
  @current_user = current_user
  @params = params
  @config = config || SlackBot::Config.current_instance
end

Instance Attribute Details

#configObject (readonly)

Returns the value of attribute config.



3
4
5
# File 'lib/slack_bot/menu_options.rb', line 3

def config
  @config
end

#current_userObject (readonly)

Returns the value of attribute current_user.



3
4
5
# File 'lib/slack_bot/menu_options.rb', line 3

def current_user
  @current_user
end

#paramsObject (readonly)

Returns the value of attribute params.



3
4
5
# File 'lib/slack_bot/menu_options.rb', line 3

def params
  @params
end