Class: WebFinger::Response

Inherits:
ActiveSupport::HashWithIndifferentAccess
  • Object
show all
Defined in:
lib/webfinger/response.rb

Instance Method Summary collapse

Instance Method Details



12
13
14
15
16
# File 'lib/webfinger/response.rb', line 12

def link_for(rel)
  links.detect do |link|
    link[:rel] == rel
  end
end