class Traceparts::User
Attributes
email[R]
Public Class Methods
new(client, email)
click to toggle source
# File lib/traceparts/user.rb, line 5 def initialize(client, email) @client = client @email = email end
Public Instance Methods
exists?()
click to toggle source
# File lib/traceparts/user.rb, line 11 def exists? @client.user_exists?(email) end
register(company, country, first_name = nil, last_name = nil, phone = nil)
click to toggle source
# File lib/traceparts/user.rb, line 15 def register(company, country, first_name = nil, last_name = nil, phone = nil) @client.register_user(email, company, country, first_name, last_name, phone) end