Module: LiveCable::Component::Identification

Extended by:
ActiveSupport::Concern
Included in:
LiveCable::Component
Defined in:
lib/live_cable/component/identification.rb

Instance Method Summary collapse

Instance Method Details

#channel_nameObject



26
27
28
# File 'lib/live_cable/component/identification.rb', line 26

def channel_name
  "#{live_connection.channel_name}/#{live_id}"
end

#live_idObject



22
23
24
# File 'lib/live_cable/component/identification.rb', line 22

def live_id
  self.class.component_id(id)
end