Class: GData::Apps::NicknameEntry
- Inherits:
-
Object
- Object
- GData::Apps::NicknameEntry
- 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
-
#login ⇒ Object
readonly
Returns the value of attribute login.
-
#nickname ⇒ Object
readonly
Returns the value of attribute nickname.
Instance Method Summary collapse
-
#initialize(entry) ⇒ NicknameEntry
constructor
NicknameEntry constructor.
- #to_s ⇒ Object
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
#login ⇒ Object (readonly)
Returns the value of attribute login.
363 364 365 |
# File 'lib/gdata/apps/provisioning.rb', line 363 def login @login end |
#nickname ⇒ Object (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_s ⇒ Object
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 |