Sha256: 8fe969163862c8417c49fea572efc3e8046bb7ed6bb9fa9927bcf2132f0a3585

Contents?: true

Size: 342 Bytes

Versions: 5

Compression:

Stored size: 342 Bytes

Contents

module PostmonRuby
  module Finders
    class CityFinder < PostmonRuby::Finders::Finder
      def endpoint
        "/cidade"
      end

      def arguments_size
        2
      end

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

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
postmon_ruby-2.1.3 lib/postmon_ruby/finders/city_finder.rb
postmon_ruby-2.1.2 lib/postmon_ruby/finders/city_finder.rb
postmon_ruby-2.1.1 lib/postmon_ruby/finders/city_finder.rb
postmon_ruby-2.1.0 lib/postmon_ruby/finders/city_finder.rb
postmon_ruby-2.0.0 lib/postmon_ruby/finders/city_finder.rb