Class: PhoneNumber
- Inherits:
-
ActiveRecordShared
- Object
- ActiveRecord::Base
- ActiveRecordShared
- PhoneNumber
- Defined in:
- app/models/phone_number.rb
Overview
A study_subject’s phone number
Instance Attribute Summary collapse
-
#current_user ⇒ Object
Returns the value of attribute current_user.
Instance Method Summary collapse
-
#is_not_valid? ⇒ Boolean
Returns boolean of comparison true only if is_valid == 2 or 999 Beware of strings from forms Rails SHOULD convert incoming string params to integer.
-
#to_s ⇒ Object
Returns description.
Instance Attribute Details
#current_user ⇒ Object
Returns the value of attribute current_user.
66 67 68 |
# File 'app/models/phone_number.rb', line 66 def current_user @current_user end |
Instance Method Details
#is_not_valid? ⇒ Boolean
Returns boolean of comparison true only if is_valid == 2 or 999 Beware of strings from forms Rails SHOULD convert incoming string params to integer.
77 78 79 80 |
# File 'app/models/phone_number.rb', line 77 def is_not_valid? # [2,999].include?(is_valid.to_i) [2,999].include?(is_valid) end |
#to_s ⇒ Object
Returns description
69 70 71 |
# File 'app/models/phone_number.rb', line 69 def to_s phone_number end |