Class: GoogleApps::Atom::Nickname
- Defined in:
- lib/google_apps/atom/nickname.rb
Constant Summary collapse
- MAP =
{ name: :nickname, userName: :user }
Instance Attribute Summary collapse
-
#doc ⇒ Object
readonly
Returns the value of attribute doc.
-
#nickname ⇒ Object
Returns the value of attribute nickname.
-
#user ⇒ Object
Returns the value of attribute user.
Instance Method Summary collapse
-
#initialize(xml = nil) ⇒ Nickname
constructor
A new instance of Nickname.
-
#to_s ⇒ Object
to_s returns the underlying XML document as a string.
Methods inherited from Document
add_type, #attrs_from_props, #build_root, #delete_node, #determine_namespaces, #find_and_update, #find_values, inherited, #make_document, #new_empty_doc, #parse, #set_instances, sub_to_meth, #type_to_s, #type_to_sym, types
Methods included from Node
#add_attributes, #add_namespaces, #add_prop_node, #check_value, #create_node, #get_content, #get_values, #node_match?
Constructor Details
Instance Attribute Details
#doc ⇒ Object (readonly)
Returns the value of attribute doc.
4 5 6 |
# File 'lib/google_apps/atom/nickname.rb', line 4 def doc @doc end |
#nickname ⇒ Object
Returns the value of attribute nickname.
4 5 6 |
# File 'lib/google_apps/atom/nickname.rb', line 4 def nickname @nickname end |
#user ⇒ Object
Returns the value of attribute user.
4 5 6 |
# File 'lib/google_apps/atom/nickname.rb', line 4 def user @user end |
Instance Method Details
#to_s ⇒ Object
to_s returns the underlying XML document as a string.
44 45 46 |
# File 'lib/google_apps/atom/nickname.rb', line 44 def to_s @doc.to_s end |