Class: Knockapi::Resources::Providers

Inherits:
Object
  • Object
show all
Defined in:
lib/knockapi/resources/providers.rb,
lib/knockapi/resources/providers/slack.rb,
lib/knockapi/resources/providers/ms_teams.rb

Defined Under Namespace

Classes: MsTeams, Slack

Instance Attribute Summary collapse

Instance Method Summary collapse

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.

Parameters:



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_teamsKnockapi::Resources::Providers::MsTeams (readonly)



10
11
12
# File 'lib/knockapi/resources/providers.rb', line 10

def ms_teams
  @ms_teams
end

#slackKnockapi::Resources::Providers::Slack (readonly)



7
8
9
# File 'lib/knockapi/resources/providers.rb', line 7

def slack
  @slack
end