Class: Toptranslation::Resource::User

Inherits:
Object
  • Object
show all
Defined in:
lib/toptranslation/resource/user.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(connection, options = {}) ⇒ User

Returns a new instance of User.



5
6
7
8
9
10
# File 'lib/toptranslation/resource/user.rb', line 5

def initialize(connection, options = {})
  @connection = connection
  @options = options

  update_from_response(options)
end

Instance Attribute Details

#first_nameObject (readonly)

Returns the value of attribute first_name.



3
4
5
# File 'lib/toptranslation/resource/user.rb', line 3

def first_name
  @first_name
end

#identifierObject (readonly)

Returns the value of attribute identifier.



3
4
5
# File 'lib/toptranslation/resource/user.rb', line 3

def identifier
  @identifier
end

#last_nameObject (readonly)

Returns the value of attribute last_name.



3
4
5
# File 'lib/toptranslation/resource/user.rb', line 3

def last_name
  @last_name
end

#nameObject (readonly)

Returns the value of attribute name.



3
4
5
# File 'lib/toptranslation/resource/user.rb', line 3

def name
  @name
end