Class: GAppsProvisioning::GroupEntry

Inherits:
Object
  • Object
show all
Defined in:
lib/gappsprovisioning/provisioningapi.rb

Overview

GroupEntry object.

Handles API responses relative to a group.

Attributes : group_id : string . The group_id is written without “@” and everything following.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(entry) ⇒ GroupEntry

GroupEntry constructor. Needs a REXML::Element <entry> as parameter


746
747
748
# File 'lib/gappsprovisioning/provisioningapi.rb', line 746

def initialize(entry) #:nodoc:
entry.elements.each("apps:property"){ |e| @group_id = e.attributes["value"] if e.attributes["name"].eql?("groupId") }
end

Instance Attribute Details

#group_idObject (readonly)

Returns the value of attribute group_id


743
744
745
# File 'lib/gappsprovisioning/provisioningapi.rb', line 743

def group_id
  @group_id
end