Class: GData::Apps::NicknameEntry

Inherits:
Object
  • Object
show all
Defined in:
lib/gdata/apps/provisioning.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



366
367
368
369
370
371
372
373
374
# File 'lib/gdata/apps/provisioning.rb', line 366

def initialize(entry) #:nodoc:
  @login = entry.elements["apps:login"].attributes["userName"]
  if entry.elements["apps:nickname"].nil?
    # IRJ Some call is failing 10 minutes into a run, I'll debug
    @nickname = nil
  else
    @nickname = entry.elements["apps:nickname"].attributes["name"]
  end
end

Instance Attribute Details

#loginObject (readonly)

Returns the value of attribute login.



363
364
365
# File 'lib/gdata/apps/provisioning.rb', line 363

def 
  @login
end

#nicknameObject (readonly)

Returns the value of attribute nickname.



363
364
365
# File 'lib/gdata/apps/provisioning.rb', line 363

def nickname
  @nickname
end

Instance Method Details

#to_sObject



376
377
378
379
# File 'lib/gdata/apps/provisioning.rb', line 376

def to_s
  outstr = "#<#{self.class}:0x#{self.object_id.to_s(16)}>\n"
  outstr += "\t#{@login} : #{@nickname}"
end