Class: GAppsProvisioning::MemberEntry

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

Overview

MemberEntry object.

Handles API responses relative to a meber of a group.

Attributes : member_id : string . The member_id is a complete email address.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(entry) ⇒ MemberEntry

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


762
763
764
# File 'lib/gappsprovisioning/provisioningapi.rb', line 762

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

Instance Attribute Details

#member_idObject (readonly)

Returns the value of attribute member_id


759
760
761
# File 'lib/gappsprovisioning/provisioningapi.rb', line 759

def member_id
  @member_id
end