Sha256: 1100c4d9046be21244f868581034b23cb379876300e471976ca6c4b4b30fbf41

Contents?: true

Size: 603 Bytes

Versions: 6

Compression:

Stored size: 603 Bytes

Contents

module Shipit
  class AnonymousUser
    def email
      'anonymous@example.com'
    end

    def login
      'anonymous'
    end

    def name
      'Anonymous'
    end

    def avatar_url
      'https://github.com/images/error/octocat_happy.gif'
    end

    def id
    end

    def logged_in?
      false
    end

    def stacks_contributed_to
      []
    end

    def avatar_uri
      User::DEFAULT_AVATAR.dup
    end

    def created_at
      Time.at(0).utc
    end
    alias_method :updated_at, :created_at

    def read_attribute_for_serialization(attr)
      public_send(attr)
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
shipit-engine-0.7.0 app/models/shipit/anonymous_user.rb
shipit-engine-0.6.4 app/models/shipit/anonymous_user.rb
shipit-engine-0.6.3 app/models/shipit/anonymous_user.rb
shipit-engine-0.6.2 app/models/shipit/anonymous_user.rb
shipit-engine-0.6.1 app/models/shipit/anonymous_user.rb
shipit-engine-0.6.0 app/models/shipit/anonymous_user.rb