Class: BunBo::DirectoryResult

Inherits:
Object
  • Object
show all
Defined in:
lib/bun_bo/results/directory_result.rb

Instance Method Summary collapse

Constructor Details

#initialize(results) ⇒ DirectoryResult

Returns a new instance of DirectoryResult.



3
4
5
# File 'lib/bun_bo/results/directory_result.rb', line 3

def initialize(results)
  @results = results
end

Instance Method Details

#messageObject



11
12
13
# File 'lib/bun_bo/results/directory_result.rb', line 11

def message
  results.map(&:message).join("\n")
end

#success?Boolean

Returns:

  • (Boolean)


7
8
9
# File 'lib/bun_bo/results/directory_result.rb', line 7

def success?
  results.all?(&:success?)
end