Class: SecondStep::MemoryAdapter::ApplicationUser

Inherits:
Object
  • Object
show all
Includes:
SecondStep::Models::ApplicationUser
Defined in:
lib/second_step/memory_adapter/application_user.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(application_user_link: nil, phone: nil, uuid: nil) ⇒ ApplicationUser

Returns a new instance of ApplicationUser.



10
11
12
13
14
# File 'lib/second_step/memory_adapter/application_user.rb', line 10

def initialize(application_user_link: nil, phone: nil, uuid: nil)
  self.application_user_link = application_user_link
  self.phone = phone
  self.uuid = uuid
end

Instance Attribute Details

Returns the value of attribute application_user_link.



8
9
10
# File 'lib/second_step/memory_adapter/application_user.rb', line 8

def application_user_link
  @application_user_link
end

#phoneObject

Returns the value of attribute phone.



8
9
10
# File 'lib/second_step/memory_adapter/application_user.rb', line 8

def phone
  @phone
end

#uuidObject

Returns the value of attribute uuid.



8
9
10
# File 'lib/second_step/memory_adapter/application_user.rb', line 8

def uuid
  @uuid
end

Instance Method Details



21
22
23
# File 'lib/second_step/memory_adapter/application_user.rb', line 21

def change_link(link)
  @application_user_link = link
end