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)
-
- (Entry) initialize(t = nil)
constructor
.......................................................................................................
-
- (Object) title
.......................................................................................................
-
- (Object) title=(t)
.......................................................................................................
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
- (Entry) initialize(t = nil)
.......................................................................................................
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
- (Object) title
.......................................................................................................
20 21 22 |
# File 'lib/agent_xmpp/xmpp/entry.rb', line 20 def title first_element_text('title') end |
- (Object) title=(t)
.......................................................................................................
25 26 27 |
# File 'lib/agent_xmpp/xmpp/entry.rb', line 25 def title=(t) replace_element_text('title', t) end |