Class: ECFS::DailyRelease

Inherits:
Object
  • Object
show all
Defined in:
lib/ecfs/daily_release.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(links, query_url) ⇒ DailyRelease

Returns a new instance of DailyRelease.



9
10
11
12
13
14
15
# File 'lib/ecfs/daily_release.rb', line 9

def initialize(links, query_url)
  @query_url = query_url
  @links     = links
  @pdfs      = find_links_by_type('pdf')
  @txts      = find_links_by_type('txt')
  @docxs     = find_links_by_type('docx')
end

Instance Attribute Details

#docxsObject (readonly)

Returns the value of attribute docxs.



7
8
9
# File 'lib/ecfs/daily_release.rb', line 7

def docxs
  @docxs
end

#pdfsObject (readonly)

Returns the value of attribute pdfs.



5
6
7
# File 'lib/ecfs/daily_release.rb', line 5

def pdfs
  @pdfs
end

#txtsObject (readonly)

Returns the value of attribute txts.



6
7
8
# File 'lib/ecfs/daily_release.rb', line 6

def txts
  @txts
end