Class: Flipper::Actor
- Inherits:
-
Object
- Object
- Flipper::Actor
- Defined in:
- lib/flipper/actor.rb
Instance Attribute Summary collapse
-
#flipper_id ⇒ Object
readonly
Returns the value of attribute flipper_id.
Instance Method Summary collapse
- #eql?(other) ⇒ Boolean (also: #==)
-
#initialize(flipper_id) ⇒ Actor
constructor
A new instance of Actor.
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_id ⇒ Object (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: ==
11 12 13 |
# File 'lib/flipper/actor.rb', line 11 def eql?(other) self.class.eql?(other.class) && @flipper_id == other.flipper_id end |