Class: Interfacets::Client::Channels::PageVisibility

Inherits:
Object
  • Object
show all
Includes:
Base
Defined in:
lib/interfacets/client/channels/page_visibility.rb

Instance Attribute Summary

Attributes included from Base

#id

Instance Method Summary collapse

Methods included from Base

#initialize, #type

Methods included from ActiveSupport::Concern

#append_features, #class_methods, extended, #included, #prepend_features, #prepended

Instance Method Details

#configure(facet:) ⇒ Object



11
# File 'lib/interfacets/client/channels/page_visibility.rb', line 11

def configure(facet:); end

#handle(facet:, event:) ⇒ Object



13
14
15
# File 'lib/interfacets/client/channels/page_visibility.rb', line 13

def handle(facet:, event:)
  facet.visibility_change(event.dig("payload", "state"))
end

#render(_facet) ⇒ Object



17
# File 'lib/interfacets/client/channels/page_visibility.rb', line 17

def render(_facet); end