Class: Link
- Inherits:
-
Object
- Object
- Link
- Defined in:
- lib/stanzas/notification_stanza.rb
Instance Method Summary collapse
- #href ⇒ Object
-
#initialize(node) ⇒ Link
constructor
A new instance of Link.
- #rel ⇒ Object
- #title ⇒ Object
- #type ⇒ Object
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
#href ⇒ Object
33 34 35 |
# File 'lib/stanzas/notification_stanza.rb', line 33 def href @node["href"] end |
#rel ⇒ Object
37 38 39 |
# File 'lib/stanzas/notification_stanza.rb', line 37 def rel @node["rel"] end |
#title ⇒ Object
29 30 31 |
# File 'lib/stanzas/notification_stanza.rb', line 29 def title @node["title"] end |
#type ⇒ Object
41 42 43 |
# File 'lib/stanzas/notification_stanza.rb', line 41 def type @node["type"] end |