Sha256: b3233c0c1b541b31c9f4dcb4b09f68023b803d042bf98a8d15c9255315d1b450

Contents?: true

Size: 446 Bytes

Versions: 9

Compression:

Stored size: 446 Bytes

Contents

# encoding: utf-8
module ContactData
  class Contact
    BASE = :contacts

    class << self
      def search(name, options = {})
        options[:base] = BASE
        options[:params] = { name: name }
        Fetcher.get(:search, options)
      end

      def from(source, slug, options = {})
        options[:base] = BASE
        options[:params] = { source: source, slug: slug }
        Fetcher.get(:from, options)
      end
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
contact-data-0.4.2 lib/contact-data/contact.rb
contact-data-0.4.1 lib/contact-data/contact.rb
contact-data-0.3.4 lib/contact-data/contact.rb
contact-data-0.4.0 lib/contact-data/contact.rb
contact-data-0.3.3 lib/contact-data/contact.rb
contact-data-0.3.2 lib/contact-data/contact.rb
contact-data-0.3.1 lib/contact-data/contact.rb
contact-data-0.3.0 lib/contact-data/contact.rb
contact-data-0.2.3 lib/contact-data/contact.rb