Class: CodexNotify::CLI::PostClient

Inherits:
Data
  • Object
show all
Defined in:
lib/codex_notify/cli.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#channelObject (readonly)

Returns the value of attribute channel

Returns:

  • (Object)

    the current value of channel



19
20
21
# File 'lib/codex_notify/cli.rb', line 19

def channel
  @channel
end

#post_callableObject (readonly)

Returns the value of attribute post_callable

Returns:

  • (Object)

    the current value of post_callable



19
20
21
# File 'lib/codex_notify/cli.rb', line 19

def post_callable
  @post_callable
end

#tokenObject (readonly)

Returns the value of attribute token

Returns:

  • (Object)

    the current value of 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