Class: WelcomeCycle::Config

Inherits:
Object
  • Object
show all
Defined in:
lib/welcome_cycle/config.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfig

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_runObject (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_classObject

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_runObject (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_dateObject

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_dateObject

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