Sha256: 9590bae6e52f01cff5fc617d7ab8b63fc4a0c3e471f1f05210d19efa65abae50

Contents?: true

Size: 641 Bytes

Versions: 5

Compression:

Stored size: 641 Bytes

Contents

require_relative '../models/application_user.rb'

module SecondStep
  module MemoryAdapter
    class ApplicationUser
      prepend Models::ApplicationUser

      attr_accessor :application_user_link, :phone, :uuid

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

      def application_user_link=(link)
        @application_user_link = link
        link.change_application_user self if link
      end

      def change_link(link)
        @application_user_link = link
      end
    end
  end
end

Version data entries

5 entries across 4 versions & 1 rubygems

Version Path
second_step-0.2.0 lib/second_step/memory_adapter/application_user.rb
second_step-0.1.4 lib/second_step/memory_adapter/application_user.rb
second_step-0.1.3 lib/second_step/memory_adapter/application_user.rb
second_step-0.1.2 lib/second_step/memory_adapter/application_user.rb
second_step-0.1.2 secondstep-notify-1.0.0-osx/lib/ruby/lib/ruby/gems/2.2.0/gems/second_step-0.1.1/lib/second_step/memory_adapter/application_user.rb