Class: Link

Inherits:
Object
  • Object
show all
Defined in:
lib/stanzas/notification_stanza.rb

Instance Method Summary collapse

Constructor Details

#initialize(node) ⇒ Link

Returns a new instance of Link.



25
26
27
# File 'lib/stanzas/notification_stanza.rb', line 25

def initialize(node)
  @node = node
end

Instance Method Details

#hrefObject



33
34
35
# File 'lib/stanzas/notification_stanza.rb', line 33

def href
  @node["href"]
end

#relObject



37
38
39
# File 'lib/stanzas/notification_stanza.rb', line 37

def rel
  @node["rel"]
end

#titleObject



29
30
31
# File 'lib/stanzas/notification_stanza.rb', line 29

def title
  @node["title"]
end

#typeObject



41
42
43
# File 'lib/stanzas/notification_stanza.rb', line 41

def type
  @node["type"]
end