class Imgur::LocalImage

Represents an image stored on the computer

Attributes

album_id[RW]
description[RW]
file[RW]
title[RW]

Public Class Methods

new(file, options={}) click to toggle source
# File lib/imgur.rb, line 221
def initialize(file, options={})
  if file.is_a? String
    @file = File.open file, 'rb'
  else
    @file = file
  end
  @title = options[:title]
  @description = options[:description]
  @album_id = options[:album_id]
end