Class: Services::SltcRegistration

Inherits:
ActiveRecord::Base
  • Object
show all
Defined in:
app/models/services/sltc_registration.rb

Constant Summary collapse

STATUS_NEW =
0
STATUS_REGISTERED =
1

Instance Method Summary collapse

Instance Method Details

#account_codeObject



13
14
15
# File 'app/models/services/sltc_registration.rb', line 13

def 
  auth_username.split('@').last if auth_username.present?
end

#usernameObject



17
18
19
# File 'app/models/services/sltc_registration.rb', line 17

def username
  auth_username.split('@').first if auth_username.present?
end