Sha256: 803b62017cc43c7374f65f784d1611873779292bff809e10aa933e06d38a0c55

Contents?: true

Size: 459 Bytes

Versions: 11

Compression:

Stored size: 459 Bytes

Contents

# encoding: utf-8
module ContactData
  class Link
    extend ContactData
    BASE = :links

    class << self
      def latest(params = {})
        Fetcher.get :latest, params.to_options(BASE)
      end

      def info(params = {})
        Fetcher.get :info, params.to_options(BASE)
      end

      def search(params = {})
        params[:timeout] ||= 600 if params.is_a? Hash
        Fetcher.get :search, params.to_options(BASE)
      end
    end
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
contact-data-0.4.9 lib/contact-data/link.rb
contact-data-0.4.8 lib/contact-data/link.rb
contact-data-0.4.6 lib/contact-data/link.rb
contact-data-0.4.5 lib/contact-data/link.rb
contact-data-0.4.4 lib/contact-data/link.rb
contact-data-0.4.3 lib/contact-data/link.rb
contact-data-0.4.2 lib/contact-data/link.rb
contact-data-0.4.1 lib/contact-data/link.rb
contact-data-0.3.4 lib/contact-data/link.rb
contact-data-0.4.0 lib/contact-data/link.rb
contact-data-0.3.3 lib/contact-data/link.rb