Class: PRX::Model::User

Inherits:
Base
  • Object
show all
Includes:
Representer::Full::UserRepresenter, Roar::Representer::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.



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

def email
  @email
end

#first_nameObject

Returns the value of attribute first_name.



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

def first_name
  @first_name
end

#last_nameObject

Returns the value of attribute last_name.



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

def last_name
  @last_name
end

#loginObject

Returns the value of attribute login.



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

def 
  @login
end

Class Method Details

.meObject



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

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