Class: TeamsIncomingClients::DayOfWeekClient
- Defined in:
- lib/teams_incoming_clients/models/day_of_week_client.rb
Constant Summary
Constants included from Modules::ClientConfigure
Modules::ClientConfigure::VALID_CONFIG_KEYS
Instance Method Summary collapse
-
#post(text, week_of_days) ⇒ PostResult
指定した曜日であればメッセージを送信する.
Methods inherited from Client
Methods included from Modules::ClientConfigure
Constructor Details
This class inherits a constructor from TeamsIncomingClients::Client
Instance Method Details
#post(text, week_of_days) ⇒ PostResult
指定した曜日であればメッセージを送信する
9 10 11 12 13 14 15 |
# File 'lib/teams_incoming_clients/models/day_of_week_client.rb', line 9 def post(text, week_of_days) if post_week_of_day?(week_of_days) (text) else PostResult.new(false, :not_post, "Today is not #{week_of_days}") end end |