Class: Contacts::Google::Group

Inherits:
Base
  • Object
show all
Defined in:
lib/contacts/google.rb

Constant Summary

Constants inherited from Base

Base::BASE_XML

Instance Attribute Summary

Attributes inherited from Base

#gmail, #xml

Instance Method Summary collapse

Methods inherited from Base

#[], #[]=, #create!, #delete!, #edit_url, #id, #load_attributes, #name, #name=, #new?, #update!, #updated_at

Constructor Details

#initialize(gmail, xml = nil) ⇒ Group

Returns a new instance of Group.



476
477
478
479
# File 'lib/contacts/google.rb', line 476

def initialize(gmail, xml = nil)
  super(gmail, xml)
  @xml.at('category')['term'] = 'http://schemas.google.com/contact/2008#group'
end

Instance Method Details

#create_urlObject



481
482
483
# File 'lib/contacts/google.rb', line 481

def create_url
  '/m8/feeds/groups/default/full'
end