Sha256: 8f2478db68a71f28e09722be69a143a38b0246cfdec40b1daa7c72f334215b3d

Contents?: true

Size: 655 Bytes

Versions: 15

Compression:

Stored size: 655 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

    def github_api
      Shipit.github_api
    end
  end
end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
shipit-engine-0.12.1 app/models/shipit/anonymous_user.rb
shipit-engine-0.12.0 app/models/shipit/anonymous_user.rb
shipit-engine-0.11.0 app/models/shipit/anonymous_user.rb
shipit-engine-0.10.0 app/models/shipit/anonymous_user.rb
shipit-engine-0.9.0 app/models/shipit/anonymous_user.rb
shipit-engine-0.8.9 app/models/shipit/anonymous_user.rb
shipit-engine-0.8.8 app/models/shipit/anonymous_user.rb
shipit-engine-0.8.7 app/models/shipit/anonymous_user.rb
shipit-engine-0.8.6 app/models/shipit/anonymous_user.rb
shipit-engine-0.8.5 app/models/shipit/anonymous_user.rb
shipit-engine-0.8.4 app/models/shipit/anonymous_user.rb
shipit-engine-0.8.3 app/models/shipit/anonymous_user.rb
shipit-engine-0.8.2 app/models/shipit/anonymous_user.rb
shipit-engine-0.8.1 app/models/shipit/anonymous_user.rb
shipit-engine-0.8.0 app/models/shipit/anonymous_user.rb