Sha256: ceb47e90b73a15e71d5cd09ad2d433d1705249eb0e18717fa0c49e7b55ee69f0

Contents?: true

Size: 528 Bytes

Versions: 8

Compression:

Stored size: 528 Bytes

Contents

require 'data-com-api/contact'
require 'data-com-api/responses/search_base'
require 'data-com-api/responses/base'

module DataComApi
  module Responses
    class SearchContact < SearchBase

      protected

        def transform_request(request)
          request['contacts'].map do |contact_attributes|
            DataComApi::Contact.new(contact_attributes)
          end
        end

        def perform_request(received_options)
          client.search_contact_raw_json(received_options)
        end
      
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
data-com-api-0.2.1 lib/data-com-api/responses/search_contact.rb
data-com-api-0.2.0 lib/data-com-api/responses/search_contact.rb
data-com-api-0.1.5 lib/data-com-api/responses/search_contact.rb
data-com-api-0.1.4 lib/data-com-api/responses/search_contact.rb
data-com-api-0.1.3 lib/data-com-api/responses/search_contact.rb
data-com-api-0.1.2 lib/data-com-api/responses/search_contact.rb
data-com-api-0.1.1 lib/data-com-api/responses/search_contact.rb
data-com-api-0.1.0 lib/data-com-api/responses/search_contact.rb