Class: LinkParser

Inherits:
Object
  • Object
show all
Defined in:
lib/aa-vimeo-downloader.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(raw, creds) ⇒ LinkParser

Returns a new instance of LinkParser.



17
18
19
20
# File 'lib/aa-vimeo-downloader.rb', line 17

def initialize(raw, creds)
  unparsed_links = narrow_to_week_section(raw.body.dup, creds.day)
  to_hash(unparsed_links)
end

Instance Attribute Details

Returns the value of attribute links.



15
16
17
# File 'lib/aa-vimeo-downloader.rb', line 15

def links
  @links
end