Class: LinkThumbnailer::ImageParser::NullImage
- Inherits:
-
Object
- Object
- LinkThumbnailer::ImageParser::NullImage
- Defined in:
- lib/link_thumbnailer/image_parser.rb
Instance Attribute Summary collapse
-
#uri ⇒ Object
readonly
Returns the value of attribute uri.
Instance Method Summary collapse
-
#initialize(uri) ⇒ NullImage
constructor
A new instance of NullImage.
- #size ⇒ Object
- #type ⇒ Object
Constructor Details
#initialize(uri) ⇒ NullImage
Returns a new instance of NullImage.
37 38 39 |
# File 'lib/link_thumbnailer/image_parser.rb', line 37 def initialize(uri) @uri = uri end |
Instance Attribute Details
#uri ⇒ Object (readonly)
Returns the value of attribute uri.
35 36 37 |
# File 'lib/link_thumbnailer/image_parser.rb', line 35 def uri @uri end |
Instance Method Details
#size ⇒ Object
41 42 43 |
# File 'lib/link_thumbnailer/image_parser.rb', line 41 def size [0, 0] end |
#type ⇒ Object
45 46 |
# File 'lib/link_thumbnailer/image_parser.rb', line 45 def type end |