Class: AgentXmpp::Xmpp::Entry
- Inherits:
-
Element
- Object
- REXML::Element
- Element
- AgentXmpp::Xmpp::Entry
- Defined in:
- lib/agent_xmpp/xmpp/entry.rb
Overview
Instance Method Summary collapse
-
#initialize(t = nil) ⇒ Entry
constructor
.….….….….….….….….….….….….….….….….….….….….….….….….……
-
#title ⇒ Object
.….….….….….….….….….….….….….….….….….….….….….….….….……
-
#title=(t) ⇒ Object
.….….….….….….….….….….….….….….….….….….….….….….….….……
Methods inherited from Element
#<<, class_for_name_xmlns, #clone, import, name_xmlns, name_xmlns_for_class, #parent=, #set_xml_lang, #typed_add, #xml_lang, #xml_lang=, xmpp_attribute, xmpp_child
Methods inherited from REXML::Element
#delete_elements, #first_element, #first_element_text, #import, import, #replace_element_text, #typed_add
Constructor Details
#initialize(t = nil) ⇒ Entry
.….….….….….….….….….….….….….….….….….….….….….….….….……
14 15 16 17 |
# File 'lib/agent_xmpp/xmpp/entry.rb', line 14 def initialize(t = nil) super() add_element(REXML::Element.new("title").add_text(t)) if t end |
Instance Method Details
#title ⇒ Object
.….….….….….….….….….….….….….….….….….….….….….….….….……
20 21 22 |
# File 'lib/agent_xmpp/xmpp/entry.rb', line 20 def title first_element_text('title') end |
#title=(t) ⇒ Object
.….….….….….….….….….….….….….….….….….….….….….….….….……
25 26 27 |
# File 'lib/agent_xmpp/xmpp/entry.rb', line 25 def title=(t) replace_element_text('title', t) end |