Class: Whenever::WebConfig

Inherits:
Object
  • Object
show all
Defined in:
app/models/whenever/web_config.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeWebConfig

Returns a new instance of WebConfig.



5
6
7
8
9
# File 'app/models/whenever/web_config.rb', line 5

def initialize
  @schedule_file     = 'config/schedule.rb'
  @parent_controller = 'Whenever::WebController'
  @layout            = 'admin'
end

Instance Attribute Details

#layoutObject

Returns the value of attribute layout.



3
4
5
# File 'app/models/whenever/web_config.rb', line 3

def layout
  @layout
end

#parent_controllerObject

Returns the value of attribute parent_controller.



3
4
5
# File 'app/models/whenever/web_config.rb', line 3

def parent_controller
  @parent_controller
end

#schedule_fileObject

Returns the value of attribute schedule_file.



3
4
5
# File 'app/models/whenever/web_config.rb', line 3

def schedule_file
  @schedule_file
end