Class: Flipper::Actor

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(flipper_id) ⇒ Actor

Returns a new instance of Actor.



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

def initialize(flipper_id)
  @flipper_id = flipper_id
end

Instance Attribute Details

#flipper_idObject (readonly)

Returns the value of attribute flipper_id.



5
6
7
# File 'lib/flipper/actor.rb', line 5

def flipper_id
  @flipper_id
end

Instance Method Details

#eql?(other) ⇒ Boolean Also known as: ==

Returns:

  • (Boolean)


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

def eql?(other)
  self.class.eql?(other.class) && @flipper_id == other.flipper_id
end