Sha256: 689484ff22516c1bb0057858579566a1282c4bcbe3e18549f01a705a5c592cc7

Contents?: true

Size: 405 Bytes

Versions: 4

Compression:

Stored size: 405 Bytes

Contents

module PostmonRuby
  module Finders
    module Tracker
      class ECTTrackerFinder < PostmonRuby::Finders::Finder
        def endpoint
          "rastreio/ect"
        end

        def arguments_size
          1
        end

        def search(*arguments)
          arguments.flatten!
          PostmonRuby::Track.new( HTTParty.get(self.arguments_uri(arguments)) )
        end
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
postmon_ruby-2.1.3 lib/postmon_ruby/finders/tracker/ect_tracker_finder.rb
postmon_ruby-2.1.2 lib/postmon_ruby/finders/tracker/ect_tracker_finder.rb
postmon_ruby-2.1.1 lib/postmon_ruby/finders/tracker/ect_tracker_finder.rb
postmon_ruby-2.1.0 lib/postmon_ruby/finders/tracker/ect_tracker_finder.rb