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-8.1.1 app/models/openstax/accounts/anonymous_account.rb
openstax_accounts-8.1.0 app/models/openstax/accounts/anonymous_account.rb
openstax_accounts-8.0.1 app/models/openstax/accounts/anonymous_account.rb
openstax_accounts-8.0.0 app/models/openstax/accounts/anonymous_account.rb
openstax_accounts-7.13.1 app/models/openstax/accounts/anonymous_account.rb
openstax_accounts-7.13.0 app/models/openstax/accounts/anonymous_account.rb
openstax_accounts-7.12.0 app/models/openstax/accounts/anonymous_account.rb
openstax_accounts-7.11.0 app/models/openstax/accounts/anonymous_account.rb
openstax_accounts-7.10.0 app/models/openstax/accounts/anonymous_account.rb
openstax_accounts-7.9.0 app/models/openstax/accounts/anonymous_account.rb
openstax_accounts-7.8.0 app/models/openstax/accounts/anonymous_account.rb
openstax_accounts-7.7.0 app/models/openstax/accounts/anonymous_account.rb
openstax_accounts-7.6.0 app/models/openstax/accounts/anonymous_account.rb
openstax_accounts-7.5.0 app/models/openstax/accounts/anonymous_account.rb
openstax_accounts-7.4.0 app/models/openstax/accounts/anonymous_account.rb
openstax_accounts-7.3.0 app/models/openstax/accounts/anonymous_account.rb
openstax_accounts-7.2.0 app/models/openstax/accounts/anonymous_account.rb
openstax_accounts-7.1.0 app/models/openstax/accounts/anonymous_account.rb
openstax_accounts-7.0.1 app/models/openstax/accounts/anonymous_account.rb
openstax_accounts-7.0.0 app/models/openstax/accounts/anonymous_account.rb