Class: Tinify::ResultMeta
- Inherits:
-
Object
- Object
- Tinify::ResultMeta
- Defined in:
- lib/tinify/result_meta.rb
Direct Known Subclasses
Instance Method Summary collapse
- #height ⇒ Object
-
#initialize(meta) ⇒ ResultMeta
constructor
A new instance of ResultMeta.
- #location ⇒ Object
- #width ⇒ Object
Constructor Details
#initialize(meta) ⇒ ResultMeta
Returns a new instance of ResultMeta.
3 4 5 |
# File 'lib/tinify/result_meta.rb', line 3 def initialize() = .freeze end |
Instance Method Details
#height ⇒ Object
11 12 13 |
# File 'lib/tinify/result_meta.rb', line 11 def height ["Image-Height"].to_i.nonzero? end |
#location ⇒ Object
15 16 17 |
# File 'lib/tinify/result_meta.rb', line 15 def location ["Location"] end |
#width ⇒ Object
7 8 9 |
# File 'lib/tinify/result_meta.rb', line 7 def width ["Image-Width"].to_i.nonzero? end |