Module: Slack::Web::Api::Endpoints::Team
- Included in:
- Slack::Web::Api::Endpoints
- Defined in:
- lib/slack/web/api/endpoints/team.rb
Instance Method Summary collapse
-
#team_accessLogs(options = {}) ⇒ Object
Gets the access logs for the current team.
-
#team_billableInfo(options = {}) ⇒ Object
Gets billable users information for the current team.
-
#team_info(options = {}) ⇒ Object
Gets information about the current team.
-
#team_integrationLogs(options = {}) ⇒ Object
Gets the integration logs for the current team.
Instance Method Details
#team_accessLogs(options = {}) ⇒ Object
Gets the access logs for the current team.
22 23 24 25 26 27 28 29 30 |
# File 'lib/slack/web/api/endpoints/team.rb', line 22 def team_accessLogs( = {}) if block_given? Pagination::Cursor.new(self, :team_accessLogs, ).each do |page| yield page end else post('team.accessLogs', ) end end |
#team_billableInfo(options = {}) ⇒ Object
Gets billable users information for the current team.
45 46 47 48 49 50 51 52 53 54 |
# File 'lib/slack/web/api/endpoints/team.rb', line 45 def team_billableInfo( = {}) = .merge(user: users_id()['user']['id']) if [:user] if block_given? Pagination::Cursor.new(self, :team_billableInfo, ).each do |page| yield page end else post('team.billableInfo', ) end end |
#team_info(options = {}) ⇒ Object
Gets information about the current team.
65 66 67 |
# File 'lib/slack/web/api/endpoints/team.rb', line 65 def team_info( = {}) post('team.info', ) end |
#team_integrationLogs(options = {}) ⇒ Object
Gets the integration logs for the current team.
84 85 86 87 |
# File 'lib/slack/web/api/endpoints/team.rb', line 84 def team_integrationLogs( = {}) = .merge(user: users_id()['user']['id']) if [:user] post('team.integrationLogs', ) end |