Class: GAppsProvisioning::NicknameEntry

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

Overview

NicknameEntry object.

Handles API responses relative to a nickname

Attributes : login : string nickname : string

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(entry) ⇒ NicknameEntry

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


716
717
718
719
# File 'lib/gappsprovisioning/provisioningapi.rb', line 716

def initialize(entry) #:nodoc:
@login = entry.elements["apps:login"].attributes["userName"]
@nickname = entry.elements["apps:nickname"].attributes["name"]
end

Instance Attribute Details

#loginObject (readonly)

Returns the value of attribute login


713
714
715
# File 'lib/gappsprovisioning/provisioningapi.rb', line 713

def 
  @login
end

#nicknameObject (readonly)

Returns the value of attribute nickname


713
714
715
# File 'lib/gappsprovisioning/provisioningapi.rb', line 713

def nickname
  @nickname
end