Class: PostmonRuby::Finders::Tracker::ECTTrackerFinder
- Defined in:
- lib/postmon_ruby/finders/tracker/ect_tracker_finder.rb
Instance Method Summary collapse
Methods inherited from Finder
Instance Method Details
#arguments_size ⇒ Object
10 11 12 |
# File 'lib/postmon_ruby/finders/tracker/ect_tracker_finder.rb', line 10 def arguments_size 1 end |
#endpoint ⇒ Object
6 7 8 |
# File 'lib/postmon_ruby/finders/tracker/ect_tracker_finder.rb', line 6 def endpoint "rastreio/ect" end |
#search(*arguments) ⇒ Object
14 15 16 17 |
# File 'lib/postmon_ruby/finders/tracker/ect_tracker_finder.rb', line 14 def search(*arguments) arguments.flatten! PostmonRuby::Track.new( PostmonRuby::Http.get(self.arguments_uri(arguments)) ) end |