Sha256: 2c54ed8b615d4cab6a2fcee17d179dc88af4db0749f0286ddd8f74e22d2e5e87

Contents?: true

Size: 797 Bytes

Versions: 5

Compression:

Stored size: 797 Bytes

Contents

module Shipit
  class CommandLineUser
    def present?
      false
    end

    def email
      'command_line@example.com'
    end

    def login
      'command_line'
    end

    def name
      'CommandLine'
    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 authorized?
      Shipit.authentication_disabled?
    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

5 entries across 5 versions & 1 rubygems

Version Path
shipit-engine-0.31.0 app/models/shipit/command_line_user.rb
shipit-engine-0.30.0 app/models/shipit/command_line_user.rb
shipit-engine-0.29.0 app/models/shipit/command_line_user.rb
shipit-engine-0.28.1 app/models/shipit/command_line_user.rb
shipit-engine-0.28.0 app/models/shipit/command_line_user.rb