Sha256: ae1d7f6d0b97521b60332441a7c5ad3395b4e970246fe2edbcdcaf73181741ca

Contents?: true

Size: 341 Bytes

Versions: 5

Compression:

Stored size: 341 Bytes

Contents

module PostmonRuby
  module Finders
    class CepFinder < PostmonRuby::Finders::Finder
      def endpoint
        "/cep"
      end

      def arguments_size
        1
      end

      def search(*arguments)
        arguments.flatten!
        PostmonRuby::Address.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/cep_finder.rb
postmon_ruby-2.1.2 lib/postmon_ruby/finders/cep_finder.rb
postmon_ruby-2.1.1 lib/postmon_ruby/finders/cep_finder.rb
postmon_ruby-2.1.0 lib/postmon_ruby/finders/cep_finder.rb
postmon_ruby-2.0.0 lib/postmon_ruby/finders/cep_finder.rb