Class: Giphy::FlaggedGif

Inherits:
SpecialGif show all
Defined in:
lib/giphy/flagged_gif.rb

Instance Method Summary collapse

Methods inherited from SpecialGif

build_batch_from, #create_date, #gif_id, #initialize

Constructor Details

This class inherits a constructor from Giphy::SpecialGif

Instance Method Details

#inappropriate?Boolean

Returns:

  • (Boolean)


6
7
8
9
# File 'lib/giphy/flagged_gif.rb', line 6

def inappropriate?
  puts hash.fetch('is_inappropriate')
  hash.fetch('is_inappropriate') == "1"
end

#source_correctedObject



15
16
17
# File 'lib/giphy/flagged_gif.rb', line 15

def source_corrected
  hash.fetch('source_corrected')
end

#wrong_source?Boolean

Returns:

  • (Boolean)


11
12
13
# File 'lib/giphy/flagged_gif.rb', line 11

def wrong_source?
  hash.fetch('is_wrong_source') == "1"
end