Class: Thumbnailer::Fetcher

Inherits:
Object
  • Object
show all
Defined in:
lib/thumbnailer/fetcher.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(url) ⇒ Fetcher

Returns a new instance of Fetcher.



4
5
6
# File 'lib/thumbnailer/fetcher.rb', line 4

def initialize(url)
  @media = Thumbnailer::Parser.new(url).worker
end

Instance Attribute Details

#mediaObject (readonly)

Returns the value of attribute media.



3
4
5
# File 'lib/thumbnailer/fetcher.rb', line 3

def media
  @media
end