class Toptranslation::Resource::User
Attributes
first_name[R]
identifier[R]
last_name[R]
name[R]
Public Class Methods
new(connection, options = {})
click to toggle source
# File lib/toptranslation/resource/user.rb, line 5 def initialize(connection, options = {}) @connection = connection @options = options update_from_response(options) end
Private Instance Methods
update_from_response(response)
click to toggle source
# File lib/toptranslation/resource/user.rb, line 14 def update_from_response(response) @identifier = response['identifier'] if response['identifier'] @first_name = response['first_name'] if response['first_name'] @first_name = response['last_name'] if response['last_name'] @name = response['name'] if response['name'] end