Class: GoogleContacts::Group

Inherits:
Base
  • Object
show all
Defined in:
lib/google_contacts/group.rb

Constant Summary collapse

CATEGORY_TERM =
"http://schemas.google.com/contact/2008#group"

Constants inherited from Base

Base::NAMESPACES

Instance Attribute Summary

Attributes inherited from Base

#xml

Instance Method Summary collapse

Methods inherited from Base

#[], #[]=, #attributes=, #changed?, #delete, #entry_for_batch, feed_for_batch, #href, #initialize, #insert_xml, #name, #name=, #new?, #remove_xml, #save, #updated_at, #url

Constructor Details

This class inherits a constructor from GoogleContacts::Base

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class GoogleContacts::Base

Instance Method Details

#inspectObject



11
12
13
# File 'lib/google_contacts/group.rb', line 11

def inspect
  "\#<GoogleContacts::Group name=#{name.inspect} system_group=#{system_group?.inspect}>"
end

#system_group?Boolean

Returns:

  • (Boolean)


7
8
9
# File 'lib/google_contacts/group.rb', line 7

def system_group?
  @xml.xpath("./gContact:systemGroup").size > 0
end