Sha256: 693f77d522e463604d5ec890de195e824f5493749ad0fabe58603686937b37c3
Contents?: true
Size: 404 Bytes
Versions: 3
Compression:
Stored size: 404 Bytes
Contents
require 'delegate' module Linodians ## # Group of employees class Group < Delegator attr_reader :members alias __getobj__ members def initialize(data = nil) @members = Linodians.load_data(data) @members.freeze super(@members) end def lookup(username) find { |x| x.username == username } end def __setobj__(_) @members end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
linodians-1.1.1 | lib/linodians/group.rb |
linodians-1.1.0 | lib/linodians/group.rb |
linodians-1.0.1 | lib/linodians/group.rb |