class Loadgif::RandomGif

Attributes

hash[R]

Public Class Methods

new(hash) click to toggle source
# File lib/loadgif/random_gif.rb, line 3
def initialize(hash)
  @hash = hash
end

Public Instance Methods

caption() click to toggle source
# File lib/loadgif/random_gif.rb, line 47
def caption
  hash.fetch('caption')
end
id() click to toggle source
# File lib/loadgif/random_gif.rb, line 7
def id
  hash.fetch('id')
end
image_frames() click to toggle source
# File lib/loadgif/random_gif.rb, line 27
def image_frames
  hash.fetch('image_frames')
end
image_height() click to toggle source
# File lib/loadgif/random_gif.rb, line 35
def image_height
  hash.fetch('image_height')
end
image_mp4_url() click to toggle source
# File lib/loadgif/random_gif.rb, line 23
def image_mp4_url
  URI(hash.fetch('image_mp4_url'))
end
image_original_url() click to toggle source
# File lib/loadgif/random_gif.rb, line 15
def image_original_url
  URI(hash.fetch('image_original_url'))
end
image_url() click to toggle source
# File lib/loadgif/random_gif.rb, line 19
def image_url
  URI(hash.fetch('image_url'))
end
image_width() click to toggle source
# File lib/loadgif/random_gif.rb, line 31
def image_width
  hash.fetch('image_width')
end
rating() click to toggle source
# File lib/loadgif/random_gif.rb, line 39
def rating
  hash.fetch('rating')
end
tags() click to toggle source
# File lib/loadgif/random_gif.rb, line 51
def tags
  hash.fetch('tags')
end
url() click to toggle source
# File lib/loadgif/random_gif.rb, line 11
def url
  URI(hash.fetch('url'))
end
username() click to toggle source
# File lib/loadgif/random_gif.rb, line 43
def username
  hash.fetch('username')
end