Class: Interfacets::Client::Actor

Inherits:
Object
  • Object
show all
Defined in:
lib/interfacets/client/actor.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(registry:, channels:) ⇒ Actor

Returns a new instance of Actor.



7
8
9
# File 'lib/interfacets/client/actor.rb', line 7

def initialize(registry:, channels:)
  @registry = registry
end

Instance Attribute Details

#facet ⇒ Object (readonly)

Returns the value of attribute facet.



6
7
8
# File 'lib/interfacets/client/actor.rb', line 6

def facet
  @facet
end

#registry ⇒ Object (readonly)

Returns the value of attribute registry.



6
7
8
# File 'lib/interfacets/client/actor.rb', line 6

def registry
  @registry
end

Instance Method Details

#build_facet(name) ⇒ Object



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

def build_facet(name)
  @facet = registry.build(name)
end

#render ⇒ Object



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

def render
  facet.render(channels)
end