class Loadgif::SpecialGif

Attributes

hash[R]

Public Class Methods

build_batch_from(array) click to toggle source
# File lib/loadgif/special_gif.rb, line 5
def self.build_batch_from(array)
  array.map { |special_gif| new(special_gif)}
end
new(hash) click to toggle source
# File lib/loadgif/special_gif.rb, line 9
def initialize(hash)
  @hash = hash
end

Public Instance Methods

create_date() click to toggle source
# File lib/loadgif/special_gif.rb, line 13
def create_date
  DateTime.parse(hash.fetch('create_date'))
end
gif_id() click to toggle source
# File lib/loadgif/special_gif.rb, line 17
def gif_id
  hash.fetch('gif_id')
end