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, #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



9
10
11
# File 'lib/google_contacts/group.rb', line 9

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

#system_group?Boolean

Returns:

  • (Boolean)


5
6
7
# File 'lib/google_contacts/group.rb', line 5

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