Class: Knockapi::Models::Providers::SlackListChannelsResponse

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/knockapi/models/providers/slack_list_channels_response.rb,
sig/knockapi/models/providers/slack_list_channels_response.rbs

Overview

See Also:

  • Knockapi::Resources::Providers::Slack#list_channels

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Internal::Type::BaseModel

==, #==, #[], coerce, #deconstruct_keys, #deep_to_h, dump, fields, hash, #hash, inherited, inspect, #inspect, known_fields, optional, recursively_to_h, required, #to_h, #to_json, #to_s, to_sorbet_type, #to_yaml

Methods included from Internal::Type::Converter

#coerce, coerce, #dump, dump, #inspect, inspect, meta_info, new_coerce_state, type_info

Methods included from Internal::Util::SorbetRuntimeSupport

#const_missing, #define_sorbet_constant!, #sorbet_constant_defined?, #to_sorbet_type, to_sorbet_type

Constructor Details

#initialize(id:, context_team_id:, is_im:, is_private:, name:) ⇒ Object

A Slack channel.

Parameters:

  • id (String)

    A Slack channel ID from the Slack provider.

  • context_team_id (String)

    The team ID that the Slack channel belongs to.

  • is_im (Boolean)

    Whether the Slack channel is an IM channel.

  • is_private (Boolean)

    Whether the Slack channel is private.

  • name (String)

    Slack channel name.



# File 'lib/knockapi/models/providers/slack_list_channels_response.rb', line 38

Instance Attribute Details

#context_team_idString

The team ID that the Slack channel belongs to.

Parameters:

  • value (String)

Returns:

  • (String)


18
# File 'lib/knockapi/models/providers/slack_list_channels_response.rb', line 18

required :context_team_id, String

#idString

A Slack channel ID from the Slack provider.

Parameters:

  • value (String)

Returns:

  • (String)


12
# File 'lib/knockapi/models/providers/slack_list_channels_response.rb', line 12

required :id, String

#is_imBoolean

Whether the Slack channel is an IM channel.

Parameters:

  • value (Boolean)

Returns:

  • (Boolean)


24
# File 'lib/knockapi/models/providers/slack_list_channels_response.rb', line 24

required :is_im, Knockapi::Internal::Type::Boolean

#is_privateBoolean

Whether the Slack channel is private.

Parameters:

  • value (Boolean)

Returns:

  • (Boolean)


30
# File 'lib/knockapi/models/providers/slack_list_channels_response.rb', line 30

required :is_private, Knockapi::Internal::Type::Boolean

#nameString

Slack channel name.

Parameters:

  • value (String)

Returns:

  • (String)


36
# File 'lib/knockapi/models/providers/slack_list_channels_response.rb', line 36

required :name, String

Instance Method Details

#to_hash{

Returns:

  • ({)


32
# File 'sig/knockapi/models/providers/slack_list_channels_response.rbs', line 32

def to_hash: -> {