Class: GoogleAppsOauth2::Atom::User

Inherits:
Document
  • Object
show all
Defined in:
lib/google_apps_oauth2/atom/user.rb

Constant Summary collapse

MAP =
{
  userName: :login,
  suspended: :suspended,
  familyName: :last_name,
  givenName: :first_name,
  limit: :quota,
  password: :password
}

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Document

#find_values, #parse, #set_instances

Methods included from Node

#add_attributes, #check_value, #create_node

Constructor Details

#initialize(xml) ⇒ User

Returns a new instance of User.



15
16
17
18
# File 'lib/google_apps_oauth2/atom/user.rb', line 15

def initialize(xml)
    super(xml, MAP)
    find_values
end

Instance Attribute Details

#docObject (readonly)

Returns the value of attribute doc.



4
5
6
# File 'lib/google_apps_oauth2/atom/user.rb', line 4

def doc
  @doc
end

#first_nameObject (readonly)

Returns the value of attribute first_name.



4
5
6
# File 'lib/google_apps_oauth2/atom/user.rb', line 4

def first_name
  @first_name
end

#last_nameObject (readonly)

Returns the value of attribute last_name.



4
5
6
# File 'lib/google_apps_oauth2/atom/user.rb', line 4

def last_name
  @last_name
end

#loginObject (readonly)

Returns the value of attribute login.



4
5
6
# File 'lib/google_apps_oauth2/atom/user.rb', line 4

def 
  @login
end

#passwordObject (readonly)

Returns the value of attribute password.



4
5
6
# File 'lib/google_apps_oauth2/atom/user.rb', line 4

def password
  @password
end

#quotaObject (readonly)

Returns the value of attribute quota.



4
5
6
# File 'lib/google_apps_oauth2/atom/user.rb', line 4

def quota
  @quota
end

#suspendedObject (readonly)

Returns the value of attribute suspended.



4
5
6
# File 'lib/google_apps_oauth2/atom/user.rb', line 4

def suspended
  @suspended
end