Sha256: f0e36d9b1e967cdf6fb8e0fa23cdd8cb85829f4184496c19703c7f42d363b15d

Contents?: true

Size: 660 Bytes

Versions: 1

Compression:

Stored size: 660 Bytes

Contents

class TestLab

  # User Error Class
  class UserError < TestLabError; end

  # User Class
  #
  # @author Zachary Patten <zachary AT jovelabs DOT com>
  class User < ZTK::DSL::Base

    # Sub-Modules
    autoload :Lifecycle,     'testlab/user/lifecycle'

    include TestLab::User::Lifecycle

    # Associations and Attributes
    belongs_to  :container,  :class_name => 'TestLab::Container'

    attribute   :password

    attribute   :identity
    attribute   :public_identity

    attribute   :uid
    attribute   :gid

    attribute   :primary,    :default => false

    def initialize(*args)
      super(*args)

      @ui = TestLab.ui
    end

  end

end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
testlab-0.6.15 lib/testlab/user.rb