Class: SlackBot::MenuOptions
- Inherits:
-
Object
- Object
- SlackBot::MenuOptions
- Defined in:
- lib/slack_bot/menu_options.rb
Instance Attribute Summary collapse
-
#config ⇒ Object
readonly
Returns the value of attribute config.
-
#current_user ⇒ Object
readonly
Returns the value of attribute current_user.
-
#params ⇒ Object
readonly
Returns the value of attribute params.
Instance Method Summary collapse
-
#initialize(current_user:, params:, config: nil) ⇒ MenuOptions
constructor
A new instance of MenuOptions.
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
#config ⇒ Object (readonly)
Returns the value of attribute config.
3 4 5 |
# File 'lib/slack_bot/menu_options.rb', line 3 def config @config end |
#current_user ⇒ Object (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 |
#params ⇒ Object (readonly)
Returns the value of attribute params.
3 4 5 |
# File 'lib/slack_bot/menu_options.rb', line 3 def params @params end |