Module: Goldfinger

Defined in:
lib/goldfinger.rb,
lib/goldfinger/link.rb,
lib/goldfinger/utils.rb,
lib/goldfinger/client.rb,
lib/goldfinger/result.rb,
lib/goldfinger/request.rb

Defined Under Namespace

Modules: Utils Classes: Client, Error, Link, NotFoundError, Request, Result

Class Method Summary collapse

Class Method Details

.finger(uri, opts = {}) ⇒ Goldfinger::Result

Returns result for the Webfinger query

Parameters:

  • uri (String)

    A full resource identifier in the format acct:[email protected]

  • opts (Hash) (defaults to: {})

    Options passed to HTTP.rb client

Returns:

Raises:

  • (Goldfinger::NotFoundError)

    Error raised when the Webfinger resource could not be retrieved

  • (Goldfinger::SSLError)

    Error raised when there was a SSL error when fetching the resource



23
24
25
# File 'lib/goldfinger.rb', line 23

def self.finger(uri, opts = {})
  Goldfinger::Client.new(uri, opts).finger
end