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.
49 50 51 |
# File 'lib/link_thumbnailer/image_parser.rb', line 49 def initialize(uri) @uri = uri end |
Instance Attribute Details
#uri ⇒ Object (readonly)
Returns the value of attribute uri.
47 48 49 |
# File 'lib/link_thumbnailer/image_parser.rb', line 47 def uri @uri end |
Instance Method Details
#size ⇒ Object
53 54 55 |
# File 'lib/link_thumbnailer/image_parser.rb', line 53 def size [0, 0] end |
#type ⇒ Object
57 58 |
# File 'lib/link_thumbnailer/image_parser.rb', line 57 def type end |