Sha256: 699c266e8d2b1ff9aea7b295b8032273fdf22c2c055166dc97b1a8bfd8d5b273

Contents?: true

Size: 429 Bytes

Versions: 42

Compression:

Stored size: 429 Bytes

Contents

module OpenStax
  module Accounts
    class AnonymousAccount < Account

      include Singleton

      before_save { false }

      def initialize(attributes=nil)
        super
        self.id           = nil
        self.openstax_uid = nil
        self.username     = 'anonymous'
        self.first_name   = 'Guest'
        self.last_name    = 'User'
      end

      def is_anonymous?
        true
      end

    end
  end
end

Version data entries

42 entries across 42 versions & 1 rubygems

Version Path
openstax_accounts-6.4.2 app/models/openstax/accounts/anonymous_account.rb
openstax_accounts-6.4.1 app/models/openstax/accounts/anonymous_account.rb
openstax_accounts-6.4.0 app/models/openstax/accounts/anonymous_account.rb
openstax_accounts-6.3.2 app/models/openstax/accounts/anonymous_account.rb
openstax_accounts-6.3.1 app/models/openstax/accounts/anonymous_account.rb
openstax_accounts-6.3.0 app/models/openstax/accounts/anonymous_account.rb
openstax_accounts-6.2.0 app/models/openstax/accounts/anonymous_account.rb
openstax_accounts-6.1.7 app/models/openstax/accounts/anonymous_account.rb
openstax_accounts-6.1.6 app/models/openstax/accounts/anonymous_account.rb
openstax_accounts-6.1.5 app/models/openstax/accounts/anonymous_account.rb
openstax_accounts-6.1.4 app/models/openstax/accounts/anonymous_account.rb
openstax_accounts-6.1.3 app/models/openstax/accounts/anonymous_account.rb
openstax_accounts-6.1.2 app/models/openstax/accounts/anonymous_account.rb
openstax_accounts-6.1.1 app/models/openstax/accounts/anonymous_account.rb
openstax_accounts-6.1.0 app/models/openstax/accounts/anonymous_account.rb
openstax_accounts-6.0.0 app/models/openstax/accounts/anonymous_account.rb
openstax_accounts-5.2.0 app/models/openstax/accounts/anonymous_account.rb
openstax_accounts-5.1.2 app/models/openstax/accounts/anonymous_account.rb
openstax_accounts-5.1.1 app/models/openstax/accounts/anonymous_account.rb
openstax_accounts-5.1.0 app/models/openstax/accounts/anonymous_account.rb