Class: Knockapi::Resources::Providers
- Inherits:
-
Object
- Object
- Knockapi::Resources::Providers
- Defined in:
- lib/knockapi/resources/providers.rb,
lib/knockapi/resources/providers/slack.rb,
lib/knockapi/resources/providers/ms_teams.rb
Defined Under Namespace
Instance Attribute Summary collapse
- #ms_teams ⇒ Knockapi::Resources::Providers::MsTeams readonly
- #slack ⇒ Knockapi::Resources::Providers::Slack readonly
Instance Method Summary collapse
-
#initialize(client:) ⇒ Providers
constructor
private
A new instance of Providers.
Constructor Details
#initialize(client:) ⇒ Providers
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Returns a new instance of Providers.
15 16 17 18 19 |
# File 'lib/knockapi/resources/providers.rb', line 15 def initialize(client:) @client = client @slack = Knockapi::Resources::Providers::Slack.new(client: client) @ms_teams = Knockapi::Resources::Providers::MsTeams.new(client: client) end |
Instance Attribute Details
#ms_teams ⇒ Knockapi::Resources::Providers::MsTeams (readonly)
10 11 12 |
# File 'lib/knockapi/resources/providers.rb', line 10 def ms_teams @ms_teams end |
#slack ⇒ Knockapi::Resources::Providers::Slack (readonly)
7 8 9 |
# File 'lib/knockapi/resources/providers.rb', line 7 def slack @slack end |