Class: Trebuchet::Strategy::Invalid
- Defined in:
- lib/trebuchet/strategy/invalid.rb
Overview
Default is to not launch the feature to anyone
Instance Attribute Summary collapse
-
#invalid_name ⇒ Object
readonly
Returns the value of attribute invalid_name.
-
#options ⇒ Object
readonly
Returns the value of attribute options.
Attributes inherited from Base
Instance Method Summary collapse
-
#initialize(name, options = nil) ⇒ Invalid
constructor
A new instance of Invalid.
- #launch_at?(user, request = nil) ⇒ Boolean
- #name ⇒ Object
- #needs_user? ⇒ Boolean
- #to_s ⇒ Object
Methods inherited from Base
#as_json, #export, #feature_id, #inspect, strategy_name
Constructor Details
#initialize(name, options = nil) ⇒ Invalid
Returns a new instance of Invalid.
6 7 8 9 |
# File 'lib/trebuchet/strategy/invalid.rb', line 6 def initialize(name, = nil) @invalid_name = name @options = end |
Instance Attribute Details
#invalid_name ⇒ Object (readonly)
Returns the value of attribute invalid_name.
4 5 6 |
# File 'lib/trebuchet/strategy/invalid.rb', line 4 def invalid_name @invalid_name end |
#options ⇒ Object (readonly)
Returns the value of attribute options.
4 5 6 |
# File 'lib/trebuchet/strategy/invalid.rb', line 4 def @options end |
Instance Method Details
#launch_at?(user, request = nil) ⇒ Boolean
15 16 17 |
# File 'lib/trebuchet/strategy/invalid.rb', line 15 def launch_at?(user, request = nil) false end |
#name ⇒ Object
11 12 13 |
# File 'lib/trebuchet/strategy/invalid.rb', line 11 def name :invalid end |
#needs_user? ⇒ Boolean
19 20 21 |
# File 'lib/trebuchet/strategy/invalid.rb', line 19 def needs_user? false end |
#to_s ⇒ Object
23 24 25 |
# File 'lib/trebuchet/strategy/invalid.rb', line 23 def to_s "#{invalid_name} (invalid) #{.inspect if }" end |