Class: Herdsman::Herd

Inherits:
Object
  • Object
show all
Defined in:
lib/herdsman/herd.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(env, config, members) ⇒ Herd

Returns a new instance of Herd.



4
5
6
7
8
# File 'lib/herdsman/herd.rb', line 4

def initialize(env, config, members)
  @env = env
  @config = config
  @members = members
end

Instance Attribute Details

#membersObject (readonly)

Returns the value of attribute members.



3
4
5
# File 'lib/herdsman/herd.rb', line 3

def members
  @members
end

Instance Method Details

#gathered?Boolean

Returns:

  • (Boolean)


10
11
12
# File 'lib/herdsman/herd.rb', line 10

def gathered?
  members.all?(&:gathered?)
end