Class: GoogleApps::Atom::GroupMember

Inherits:
Document
  • Object
show all
Defined in:
lib/google_apps/atom/group_member.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#initialize(xml = nil) ⇒ GroupMember

Returns a new instance of GroupMember.



6
7
8
9
# File 'lib/google_apps/atom/group_member.rb', line 6

def initialize(xml = nil)
  super(xml)
  xml ? populate_self : @doc.root = build_root(:groupmember)
end

Instance Attribute Details

#memberObject

Returns the value of attribute member.



4
5
6
# File 'lib/google_apps/atom/group_member.rb', line 4

def member
  @member
end

#typeObject

Returns the value of attribute type.



4
5
6
# File 'lib/google_apps/atom/group_member.rb', line 4

def type
  @type
end

Instance Method Details

#to_sObject

to_s returns @doc as a string.



36
37
38
# File 'lib/google_apps/atom/group_member.rb', line 36

def to_s
  @doc.to_s
end