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
# File 'lib/giphy/flagged_gif.rb', line 6

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

#source_correctedObject



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

def source_corrected
  hash.fetch('source_corrected')
end

#wrong_source?Boolean

Returns:

  • (Boolean)


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

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