Class: PRX::Model::User

Inherits:
Base
  • Object
show all
Includes:
Representer::Full::UserRepresenter, Roar::JSON
Defined in:
lib/prx/model/user.rb

Instance Attribute Summary collapse

Attributes inherited from Base

#id

Class Method Summary collapse

Methods inherited from Base

#class_path_part, #find_by_id, #initialize, #request, request, #save

Constructor Details

This class inherits a constructor from PRX::Model::Base

Instance Attribute Details

#emailObject

Returns the value of attribute email.



11
12
13
# File 'lib/prx/model/user.rb', line 11

def email
  @email
end

#first_nameObject

Returns the value of attribute first_name.



11
12
13
# File 'lib/prx/model/user.rb', line 11

def first_name
  @first_name
end

#last_nameObject

Returns the value of attribute last_name.



11
12
13
# File 'lib/prx/model/user.rb', line 11

def last_name
  @last_name
end

#loginObject

Returns the value of attribute login.



11
12
13
# File 'lib/prx/model/user.rb', line 11

def 
  @login
end

Class Method Details

.meObject



13
14
15
# File 'lib/prx/model/user.rb', line 13

def self.me
	request(:path=>'/me')
end