module AdnHashtagPhotos::Uploader
Public Class Methods
detect_uploader(annotations)
click to toggle source
Detects uploader of photo / annotations structure
@param [Array] annotations @return [Uploader::Base]
# File lib/adn_hashtag_photos/uploader.rb, line 11 def self.detect_uploader annotations [Climber, Core].map do |provider| provider.new annotations if provider.detected? annotations end.compact.first end