Class: CodexNotify::CLI::PostClient
- Inherits:
-
Data
- Object
- Data
- CodexNotify::CLI::PostClient
- Defined in:
- lib/codex_notify/cli.rb
Instance Attribute Summary collapse
-
#channel ⇒ Object
readonly
Returns the value of attribute channel.
-
#post_callable ⇒ Object
readonly
Returns the value of attribute post_callable.
-
#token ⇒ Object
readonly
Returns the value of attribute token.
Instance Method Summary collapse
Instance Attribute Details
#channel ⇒ Object (readonly)
Returns the value of attribute channel
19 20 21 |
# File 'lib/codex_notify/cli.rb', line 19 def channel @channel end |
#post_callable ⇒ Object (readonly)
Returns the value of attribute post_callable
19 20 21 |
# File 'lib/codex_notify/cli.rb', line 19 def post_callable @post_callable end |
#token ⇒ Object (readonly)
Returns the value of attribute token
19 20 21 |
# File 'lib/codex_notify/cli.rb', line 19 def token @token end |
Instance Method Details
#post(text, thread_ts: nil) ⇒ Object
20 21 22 |
# File 'lib/codex_notify/cli.rb', line 20 def post(text, thread_ts: nil) post_callable.call(token, channel, text, thread_ts) end |