Class: Thumbnailer::Fetcher
- Inherits:
-
Object
- Object
- Thumbnailer::Fetcher
- Defined in:
- lib/thumbnailer/fetcher.rb
Instance Attribute Summary collapse
-
#media ⇒ Object
readonly
Returns the value of attribute media.
Instance Method Summary collapse
-
#initialize(url) ⇒ Fetcher
constructor
A new instance of Fetcher.
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
#media ⇒ Object (readonly)
Returns the value of attribute media.
3 4 5 |
# File 'lib/thumbnailer/fetcher.rb', line 3 def media @media end |