Class: Flipper::Types::Actor
- Inherits:
-
Flipper::Type
- Object
- Flipper::Type
- Flipper::Types::Actor
- Defined in:
- lib/flipper/types/actor.rb
Instance Attribute Summary collapse
-
#identifier ⇒ Object
readonly
Returns the value of attribute identifier.
Instance Method Summary collapse
- #enabled_value ⇒ Object (also: #disabled_value)
-
#initialize(identifier) ⇒ Actor
constructor
A new instance of Actor.
Constructor Details
#initialize(identifier) ⇒ Actor
Returns a new instance of Actor.
6 7 8 |
# File 'lib/flipper/types/actor.rb', line 6 def initialize(identifier) @identifier = identifier.to_i end |
Instance Attribute Details
#identifier ⇒ Object (readonly)
Returns the value of attribute identifier.
4 5 6 |
# File 'lib/flipper/types/actor.rb', line 4 def identifier @identifier end |
Instance Method Details
#enabled_value ⇒ Object Also known as: disabled_value
10 11 12 |
# File 'lib/flipper/types/actor.rb', line 10 def enabled_value @identifier end |