Class: DownloadIssueData

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(key:, found_in_primary_query: true, last_modified: nil, up_to_date: true, cache_path: nil, issue: nil) ⇒ DownloadIssueData

Returns a new instance of DownloadIssueData.



10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
# File 'lib/jirametrics/downloader.rb', line 10

def initialize(
  key:,
  found_in_primary_query: true,
  last_modified: nil,
  up_to_date: true,
  cache_path: nil,
  issue: nil
)
  @key = key
  @found_in_primary_query = found_in_primary_query
  @last_modified = last_modified
  @up_to_date = up_to_date
  @cache_path = cache_path
  @issue = issue
end

Instance Attribute Details

#cache_pathObject

Returns the value of attribute cache_path.



7
8
9
# File 'lib/jirametrics/downloader.rb', line 7

def cache_path
  @cache_path
end

#found_in_primary_queryObject

Returns the value of attribute found_in_primary_query.



7
8
9
# File 'lib/jirametrics/downloader.rb', line 7

def found_in_primary_query
  @found_in_primary_query
end

#issueObject

Returns the value of attribute issue.



7
8
9
# File 'lib/jirametrics/downloader.rb', line 7

def issue
  @issue
end

#keyObject

Returns the value of attribute key.



7
8
9
# File 'lib/jirametrics/downloader.rb', line 7

def key
  @key
end

#last_modifiedObject

Returns the value of attribute last_modified.



7
8
9
# File 'lib/jirametrics/downloader.rb', line 7

def last_modified
  @last_modified
end

#up_to_dateObject

Returns the value of attribute up_to_date.



7
8
9
# File 'lib/jirametrics/downloader.rb', line 7

def up_to_date
  @up_to_date
end