class Imgur::Image
Represents an image on Imgur
Attributes
animated[RW]
bandwidth[RW]
date[RW]
deletehash[RW]
description[RW]
favorite[RW]
height[RW]
html_link[RW]
id[RW]
link[RW]
nsfw[RW]
section[RW]
size[RW]
title[RW]
type[RW]
views[RW]
width[RW]
Public Class Methods
new(data)
click to toggle source
# File lib/imgur.rb, line 240 def initialize(data) @id = data['id'] @title = data['title'] @description = data['description'] @date = Time.at data['datetime'] @type = data['type'] @animated = data['animated'] @width = data['width'] @height = data['height'] @size = data['size'] @views = data['views'] @bandwidth = data['bandwidth'] @favorite = data['favorite'] @nsfw = data['nsfw'] @section = data['section'] @deletehash = data['deletehash'] @link = data['link'] @html_link = HTML_PATH + @id end