class Snafu::Models::GlitchImage
Provides a simple class to represent image information returned by the Glitch API.
Attributes
height[R]
url[R]
width[R]
Public Class Methods
new(options={})
click to toggle source
Accepts an options hash with :url
, :width
, and :height
properties
# File lib/snafu/models/glitch_image.rb, line 10 def initialize(options={}) @url = options[:url] @width = options[:width].to_i || 0 @height = options[:height].to_i || 0 end