Sha256: 07bda04f59665d767f2078de5d2504dfc6d536f81f0d94ce5eb44d7837e1854d
Contents?: true
Size: 553 Bytes
Versions: 1
Compression:
Stored size: 553 Bytes
Contents
module Shutterstock class Thumbnail < Driver attr_reader :hash, :url, :height, :width include Equalizer.new(:url) # {"display_name":"Huge","dpi":300,"file_size":1103872,"format":"jpg","height":5000,"is_licensable":false,"width":5000} def initialize(params = {}) @hash = params @url = params["url"] # (string), @height = params["height"].to_i # (integer), @width = params["width"].to_i # (integer) end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
shutterstock-v2-0.0.1 | lib/client/thumbnail.rb |