class Tinify::ResultMeta

Public Class Methods

new(meta) click to toggle source
# File lib/tinify/result_meta.rb, line 3
def initialize(meta)
  @meta = meta.freeze
end

Public Instance Methods

height() click to toggle source
# File lib/tinify/result_meta.rb, line 11
def height
  @meta["Image-Height"].to_i.nonzero?
end
location() click to toggle source
# File lib/tinify/result_meta.rb, line 15
def location
  @meta["Location"]
end
width() click to toggle source
# File lib/tinify/result_meta.rb, line 7
def width
  @meta["Image-Width"].to_i.nonzero?
end