Class: TalkToYourApp::Plugins::Flipper::Actor

Inherits:
Struct
  • Object
show all
Defined in:
lib/talk_to_your_app/plugins/flipper/plugin.rb

Overview

A minimal actor: Flipper only needs an object responding to #flipper_id. We reconstitute one from a class name + id rather than loading the host’s real record, which avoids coupling to the host’s user model and any privilege leak from instantiating it.

Instance Attribute Summary collapse

Instance Attribute Details

#flipper_idObject

Returns the value of attribute flipper_id

Returns:

  • (Object)

    the current value of flipper_id



21
22
23
# File 'lib/talk_to_your_app/plugins/flipper/plugin.rb', line 21

def flipper_id
  @flipper_id
end