Class: Redfinger::Finger
- Inherits:
-
Object
- Object
- Redfinger::Finger
- Includes:
- LinkHelpers
- Defined in:
- lib/redfinger/finger.rb
Overview
The result of a Webfinger. For more information about special helpers that are availale to pull specific types of URLs, see Redfinger::LinkHelpers
Instance Method Summary collapse
-
#initialize(subject, xml) ⇒ Finger
constructor
:nodoc:.
-
#inspect ⇒ Object
:nodoc:.
-
#links ⇒ Object
All of the links provided by the Webfinger response.
Methods included from LinkHelpers
#hcard, #open_id, #profile_page, #xfn
Constructor Details
#initialize(subject, xml) ⇒ Finger
:nodoc:
8 9 10 11 |
# File 'lib/redfinger/finger.rb', line 8 def initialize(subject, xml) # :nodoc: @doc = Nokogiri::XML::Document.parse(xml) @subject = subject end |
Instance Method Details
#inspect ⇒ Object
:nodoc:
18 19 20 |
# File 'lib/redfinger/finger.rb', line 18 def inspect # :nodoc: "<#Redfinger::Finger subject=\"#{@subject}\">" end |