Class: ContactData::Identity

Inherits:
Object
  • Object
show all
Defined in:
lib/contact-data/identity.rb

Constant Summary collapse

BASE =
:identities

Class Method Summary collapse

Class Method Details

.for_url(url, options = {}) ⇒ Object



8
9
10
11
12
13
14
# File 'lib/contact-data/identity.rb', line 8

def for_url(url, options = {})
  options[:base] ||= BASE
  options[:api_base] ||= 'api/v3'
  options[:params] ||= { url: url }

  Fetcher.get(:for_url, options)
end