class WikipediaWrapper::Image
Attributes
height[R]
mime[R]
name[R]
url[R]
width[R]
Public Class Methods
new(url, width, height, data)
click to toggle source
# File lib/wikipedia_wrapper/image.rb, line 53 def initialize(url, width, height, data) @url = url @name = data[:name] || '' @mime = data[:mime] || '' @height = data[:height] || 0 @width = data[:width] || 0 end
Public Instance Methods
to_s()
click to toggle source
# File lib/wikipedia_wrapper/image.rb, line 63 def to_s "Image: #{@name} (#{@url})" end