Class: Nanobot::Config::SlackDMConfig
- Inherits:
-
Struct
- Object
- Struct
- Nanobot::Config::SlackDMConfig
- Defined in:
- lib/nanobot/config/schema.rb
Overview
Slack direct message policy configuration
Instance Attribute Summary collapse
-
#allow_from ⇒ Object
Returns the value of attribute allow_from.
-
#enabled ⇒ Object
Returns the value of attribute enabled.
-
#policy ⇒ Object
Returns the value of attribute policy.
Instance Method Summary collapse
-
#initialize(enabled: true, policy: 'open', allow_from: []) ⇒ SlackDMConfig
constructor
A new instance of SlackDMConfig.
Constructor Details
#initialize(enabled: true, policy: 'open', allow_from: []) ⇒ SlackDMConfig
Returns a new instance of SlackDMConfig.
159 160 161 |
# File 'lib/nanobot/config/schema.rb', line 159 def initialize(enabled: true, policy: 'open', allow_from: []) super end |
Instance Attribute Details
#allow_from ⇒ Object
Returns the value of attribute allow_from
155 156 157 |
# File 'lib/nanobot/config/schema.rb', line 155 def allow_from @allow_from end |
#enabled ⇒ Object
Returns the value of attribute enabled
155 156 157 |
# File 'lib/nanobot/config/schema.rb', line 155 def enabled @enabled end |
#policy ⇒ Object
Returns the value of attribute policy
155 156 157 |
# File 'lib/nanobot/config/schema.rb', line 155 def policy @policy end |