Sha256: 55498fd95ba965bcada3eb3e7b0a4a24ea3e14d771f0d17fca47d83ac7484b84
Contents?: true
Size: 1.01 KB
Versions: 5
Compression:
Stored size: 1.01 KB
Contents
# frozen_string_literal: true module Shipit class AnonymousUser def blank? true end 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 github_id end def logged_in? false end def requires_fresh_login? false end def authorized? Shipit.authentication_disabled? end def repositories_contributed_to [] 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 def serializer_class AnonymousUserSerializer end def marked_for_destruction? true end end end
Version data entries
5 entries across 5 versions & 1 rubygems