Sha256: 1cb00ba2e1279a1cdadf3b4a90c5ccdc7ac485252aebc942f857a4a30d782eee

Contents?: true

Size: 459 Bytes

Versions: 18

Compression:

Stored size: 459 Bytes

Contents

module OpenStax
  module Accounts
    class AnonymousAccount < Account
      include Singleton

      before_save { false }

      def initialize(attributes=nil)
        super
        self.id           = nil
        self.uuid         = 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

18 entries across 18 versions & 1 rubygems

Version Path
openstax_accounts-9.9.0 app/models/openstax/accounts/anonymous_account.rb
openstax_accounts-9.8.1 app/models/openstax/accounts/anonymous_account.rb
openstax_accounts-9.8.0 app/models/openstax/accounts/anonymous_account.rb
openstax_accounts-9.7.0 app/models/openstax/accounts/anonymous_account.rb
openstax_accounts-9.6.1 app/models/openstax/accounts/anonymous_account.rb
openstax_accounts-9.6.0 app/models/openstax/accounts/anonymous_account.rb
openstax_accounts-9.5.1 app/models/openstax/accounts/anonymous_account.rb
openstax_accounts-9.5.0 app/models/openstax/accounts/anonymous_account.rb
openstax_accounts-9.4.0 app/models/openstax/accounts/anonymous_account.rb
openstax_accounts-9.3.0 app/models/openstax/accounts/anonymous_account.rb
openstax_accounts-9.0.5 app/models/openstax/accounts/anonymous_account.rb
openstax_accounts-9.0.4 app/models/openstax/accounts/anonymous_account.rb
openstax_accounts-9.2.0 app/models/openstax/accounts/anonymous_account.rb
openstax_accounts-9.0.3 app/models/openstax/accounts/anonymous_account.rb
openstax_accounts-9.1.0 app/models/openstax/accounts/anonymous_account.rb
openstax_accounts-9.0.2 app/models/openstax/accounts/anonymous_account.rb
openstax_accounts-9.0.1 app/models/openstax/accounts/anonymous_account.rb
openstax_accounts-9.0.0 app/models/openstax/accounts/anonymous_account.rb