Class: DownloadConfig

Inherits:
Object show all
Defined in:
lib/jirametrics/download_config.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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_configObject (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

#runObject



14
15
16
# File 'lib/jirametrics/download_config.rb', line 14

def run
  instance_eval(&@block)
end