Class: SecureNative::UserTraits

Inherits:
Object
  • Object
show all
Defined in:
lib/securenative/user_traits.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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_atObject

Returns the value of attribute created_at.



5
6
7
# File 'lib/securenative/user_traits.rb', line 5

def created_at
  @created_at
end

#emailObject

Returns the value of attribute email.



5
6
7
# File 'lib/securenative/user_traits.rb', line 5

def email
  @email
end

#nameObject

Returns the value of attribute name.



5
6
7
# File 'lib/securenative/user_traits.rb', line 5

def name
  @name
end

#phoneObject

Returns the value of attribute phone.



5
6
7
# File 'lib/securenative/user_traits.rb', line 5

def phone
  @phone
end