Class: DownloadConfig
Instance Attribute Summary collapse
-
#project_config ⇒ Object
readonly
Returns the value of attribute project_config.
Instance Method Summary collapse
-
#initialize(project_config:, block:) ⇒ DownloadConfig
constructor
A new instance of DownloadConfig.
- #rolling_date_count(count = nil) ⇒ Object
- #run ⇒ Object
Constructor Details
#initialize(project_config:, block:) ⇒ DownloadConfig
Returns a new instance of DownloadConfig.
8 9 10 11 12 |
# File 'lib/jirametrics/download_config.rb', line 8 def initialize project_config:, block: @project_config = project_config @block = block @board_ids = [] end |
Instance Attribute Details
#project_config ⇒ Object (readonly)
Returns the value of attribute project_config.
6 7 8 |
# File 'lib/jirametrics/download_config.rb', line 6 def project_config @project_config end |
Instance Method Details
#rolling_date_count(count = nil) ⇒ Object
18 19 20 21 |
# File 'lib/jirametrics/download_config.rb', line 18 def rolling_date_count count = nil @rolling_date_count = count unless count.nil? @rolling_date_count end |
#run ⇒ Object
14 15 16 |
# File 'lib/jirametrics/download_config.rb', line 14 def run instance_eval(&@block) end |