Module: Interfacets::Client::Channels::Base

Extended by:
ActiveSupport::Concern
Included in:
Api, Audio, PageVisibility, React::Channel, SpeechToText, Timer, Url
Defined in:
lib/interfacets/client/channels/base.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from ActiveSupport::Concern

append_features, class_methods, extended, included, prepend_features, prepended

Instance Attribute Details

#id ⇒ Object (readonly)

Returns the value of attribute id.



9
10
11
# File 'lib/interfacets/client/channels/base.rb', line 9

def id
  @id
end

Instance Method Details

#initialize(id:) ⇒ Object



11
12
13
# File 'lib/interfacets/client/channels/base.rb', line 11

def initialize(id:)
  @id = id
end

#type ⇒ Object



15
16
17
# File 'lib/interfacets/client/channels/base.rb', line 15

def type
  self.class.type
end