class Rapa::Image
Attributes
source[R]
@return [Hash]
Public Class Methods
new(source)
click to toggle source
@param source [Hash]
# File lib/rapa/image.rb, line 7 def initialize(source) @source = source end
Public Instance Methods
height()
click to toggle source
@return [Integer]
# File lib/rapa/image.rb, line 12 def height ::Rapa::Quantity.new(source["Height"]) end
url()
click to toggle source
@return [String]
# File lib/rapa/image.rb, line 17 def url source["URL"] end
width()
click to toggle source
@return [Integer]
# File lib/rapa/image.rb, line 22 def width ::Rapa::Quantity.new(source["Width"]) end