Class: SecureNative::UserTraits
- Inherits:
-
Object
- Object
- SecureNative::UserTraits
- Defined in:
- lib/securenative/user_traits.rb
Instance Attribute Summary collapse
-
#created_at ⇒ Object
Returns the value of attribute created_at.
-
#email ⇒ Object
Returns the value of attribute email.
-
#name ⇒ Object
Returns the value of attribute name.
-
#phone ⇒ Object
Returns the value of attribute phone.
Instance Method Summary collapse
-
#initialize(name: nil, email: nil, phone: nil, created_at: nil) ⇒ UserTraits
constructor
A new instance of UserTraits.
Constructor Details
#initialize(name: nil, email: nil, phone: nil, created_at: nil) ⇒ UserTraits
Returns a new instance of UserTraits.
8 9 10 11 12 13 |
# File 'lib/securenative/user_traits.rb', line 8 def initialize(name: nil, email: nil, phone: nil, created_at: nil) @name = name @email = email @created_at = created_at @phone = phone end |
Instance Attribute Details
#created_at ⇒ Object
Returns the value of attribute created_at.
5 6 7 |
# File 'lib/securenative/user_traits.rb', line 5 def created_at @created_at end |
#email ⇒ Object
Returns the value of attribute email.
5 6 7 |
# File 'lib/securenative/user_traits.rb', line 5 def email @email end |
#name ⇒ Object
Returns the value of attribute name.
5 6 7 |
# File 'lib/securenative/user_traits.rb', line 5 def name @name end |
#phone ⇒ Object
Returns the value of attribute phone.
5 6 7 |
# File 'lib/securenative/user_traits.rb', line 5 def phone @phone end |