Sha256: fe1e114fed1a4b38f4567b338e4d8b5f0e2bd6e54dc3f0e2bd2def6fd431da2b

Contents?: true

Size: 489 Bytes

Versions: 9

Compression:

Stored size: 489 Bytes

Contents

# encoding: utf-8
# frozen_string_literal: true
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

9 entries across 9 versions & 1 rubygems

Version Path
contact-data-0.6.0 lib/contact-data/link.rb
contact-data-0.5.6 lib/contact-data/link.rb
contact-data-0.5.5 lib/contact-data/link.rb
contact-data-0.5.4 lib/contact-data/link.rb
contact-data-0.5.3 lib/contact-data/link.rb
contact-data-0.5.2 lib/contact-data/link.rb
contact-data-0.5.1 lib/contact-data/link.rb
contact-data-0.5.0 lib/contact-data/link.rb
contact-data-0.4.10 lib/contact-data/link.rb