Class: AsakusaRssMonitor::BotConfig
- Inherits:
-
Object
- Object
- AsakusaRssMonitor::BotConfig
- Defined in:
- lib/asakusa-rss-monitor/bot-config.rb
Instance Attribute Summary collapse
-
#api_key ⇒ Object
readonly
Returns the value of attribute api_key.
-
#entry_point ⇒ Object
readonly
Returns the value of attribute entry_point.
-
#room_id ⇒ Object
readonly
Returns the value of attribute room_id.
Instance Method Summary collapse
-
#initialize(config) ⇒ BotConfig
constructor
A new instance of BotConfig.
Constructor Details
#initialize(config) ⇒ BotConfig
Returns a new instance of BotConfig.
6 7 8 9 10 |
# File 'lib/asakusa-rss-monitor/bot-config.rb', line 6 def initialize(config) @api_key = config[:api_key] @entry_point = config[:entry_point] @room_id = config[:room_id] end |
Instance Attribute Details
#api_key ⇒ Object (readonly)
Returns the value of attribute api_key.
5 6 7 |
# File 'lib/asakusa-rss-monitor/bot-config.rb', line 5 def api_key @api_key end |
#entry_point ⇒ Object (readonly)
Returns the value of attribute entry_point.
5 6 7 |
# File 'lib/asakusa-rss-monitor/bot-config.rb', line 5 def entry_point @entry_point end |
#room_id ⇒ Object (readonly)
Returns the value of attribute room_id.
5 6 7 |
# File 'lib/asakusa-rss-monitor/bot-config.rb', line 5 def room_id @room_id end |