class AdnHashtagPhotos::Uploader::Core
Public Class Methods
detected?(annotations)
click to toggle source
@param [Array] annotations
# File lib/adn_hashtag_photos/uploader/core.rb, line 5 def self.detected? annotations annotations.any?{|item| item[:type] == 'net.app.core.oembed' } end
Public Instance Methods
thumbnail_url()
click to toggle source
# File lib/adn_hashtag_photos/uploader/core.rb, line 11 def thumbnail_url @annotations.detect{|annotation| annotation[:type] == 'net.app.core.oembed' }[:value][:thumbnail_url] end