Class: WelcomeCycle::Config
- Inherits:
-
Object
- Object
- WelcomeCycle::Config
- Defined in:
- lib/welcome_cycle/config.rb
Instance Attribute Summary collapse
-
#after_run ⇒ Object
readonly
Returns the value of attribute after_run.
-
#base_class ⇒ Object
Returns the value of attribute base_class.
-
#before_run ⇒ Object
readonly
Returns the value of attribute before_run.
-
#welcome_cycle_end_date ⇒ Object
Returns the value of attribute welcome_cycle_end_date.
-
#welcome_cycle_start_date ⇒ Object
Returns the value of attribute welcome_cycle_start_date.
Instance Method Summary collapse
- #after(&block) ⇒ Object
- #before(&block) ⇒ Object
-
#initialize ⇒ Config
constructor
A new instance of Config.
Constructor Details
#initialize ⇒ Config
Returns a new instance of Config.
7 8 9 10 |
# File 'lib/welcome_cycle/config.rb', line 7 def initialize @welcome_cycle_start_date = :trial_stared_at @welcome_cycle_end_date = :trial_ends_at end |
Instance Attribute Details
#after_run ⇒ Object (readonly)
Returns the value of attribute after_run.
5 6 7 |
# File 'lib/welcome_cycle/config.rb', line 5 def after_run @after_run end |
#base_class ⇒ Object
Returns the value of attribute base_class.
4 5 6 |
# File 'lib/welcome_cycle/config.rb', line 4 def base_class @base_class end |
#before_run ⇒ Object (readonly)
Returns the value of attribute before_run.
5 6 7 |
# File 'lib/welcome_cycle/config.rb', line 5 def before_run @before_run end |
#welcome_cycle_end_date ⇒ Object
Returns the value of attribute welcome_cycle_end_date.
4 5 6 |
# File 'lib/welcome_cycle/config.rb', line 4 def welcome_cycle_end_date @welcome_cycle_end_date end |
#welcome_cycle_start_date ⇒ Object
Returns the value of attribute welcome_cycle_start_date.
4 5 6 |
# File 'lib/welcome_cycle/config.rb', line 4 def welcome_cycle_start_date @welcome_cycle_start_date end |
Instance Method Details
#after(&block) ⇒ Object
16 17 18 |
# File 'lib/welcome_cycle/config.rb', line 16 def after(&block) @after_run = block end |
#before(&block) ⇒ Object
12 13 14 |
# File 'lib/welcome_cycle/config.rb', line 12 def before(&block) @before_run = block end |