Class: StandupMD::Post::Adapter
- Inherits:
-
Object
- Object
- StandupMD::Post::Adapter
- Defined in:
- lib/standup_md/post/adapter.rb
Overview
Base class for chat posting adapters.
Direct Known Subclasses
Instance Attribute Summary collapse
-
#options ⇒ Hash
readonly
Adapter-specific non-secret options.
Instance Method Summary collapse
-
#initialize(options = {}) ⇒ Adapter
constructor
Creates an adapter.
-
#post(message) ⇒ StandupMD::Post::Result
Sends a message.
Constructor Details
#initialize(options = {}) ⇒ Adapter
Creates an adapter.
18 19 20 |
# File 'lib/standup_md/post/adapter.rb', line 18 def initialize( = {}) @options = symbolize_keys() end |
Instance Attribute Details
#options ⇒ Hash (readonly)
Adapter-specific non-secret options.
12 13 14 |
# File 'lib/standup_md/post/adapter.rb', line 12 def @options end |
Instance Method Details
#post(message) ⇒ StandupMD::Post::Result
Sends a message.
28 29 30 |
# File 'lib/standup_md/post/adapter.rb', line 28 def post() raise NotImplementedError, "#{self.class} must implement #post" end |