Class: GAppsProvisioning::OwnerEntry

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

Overview

OwnerEntry object.

Handles API responses relative to a owner of a group.

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(entry) ⇒ OwnerEntry

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


778
779
780
# File 'lib/gappsprovisioning/provisioningapi.rb', line 778

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

Instance Attribute Details

#owner_idObject (readonly)

Returns the value of attribute owner_id


775
776
777
# File 'lib/gappsprovisioning/provisioningapi.rb', line 775

def owner_id
  @owner_id
end