Class: CommandTower::Messaging::Channels::Definition

Inherits:
Data
  • Object
show all
Defined in:
app/services/command_tower/messaging/channels/definition.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#canonical_providerObject (readonly)

Returns the value of attribute canonical_provider

Returns:

  • (Object)

    the current value of canonical_provider



6
7
8
# File 'app/services/command_tower/messaging/channels/definition.rb', line 6

def canonical_provider
  @canonical_provider
end

#identity_backedObject (readonly)

Returns the value of attribute identity_backed

Returns:

  • (Object)

    the current value of identity_backed



6
7
8
# File 'app/services/command_tower/messaging/channels/definition.rb', line 6

def identity_backed
  @identity_backed
end

#keyObject (readonly)

Returns the value of attribute key

Returns:

  • (Object)

    the current value of key



6
7
8
# File 'app/services/command_tower/messaging/channels/definition.rb', line 6

def key
  @key
end

#kindObject (readonly)

Returns the value of attribute kind

Returns:

  • (Object)

    the current value of kind



6
7
8
# File 'app/services/command_tower/messaging/channels/definition.rb', line 6

def kind
  @kind
end

#labelObject (readonly)

Returns the value of attribute label

Returns:

  • (Object)

    the current value of label



6
7
8
# File 'app/services/command_tower/messaging/channels/definition.rb', line 6

def label
  @label
end

#supports_endpoint_recordsObject (readonly)

Returns the value of attribute supports_endpoint_records

Returns:

  • (Object)

    the current value of supports_endpoint_records



6
7
8
# File 'app/services/command_tower/messaging/channels/definition.rb', line 6

def supports_endpoint_records
  @supports_endpoint_records
end

Instance Method Details

#external?Boolean

Returns:

  • (Boolean)


14
15
16
# File 'app/services/command_tower/messaging/channels/definition.rb', line 14

def external?
  kind == :external
end

#inbox?Boolean

Returns:

  • (Boolean)


18
19
20
# File 'app/services/command_tower/messaging/channels/definition.rb', line 18

def inbox?
  kind == :inbox
end