Class: BunBo::DirectoryResult
- Inherits:
-
Object
- Object
- BunBo::DirectoryResult
- Defined in:
- lib/bun_bo/results/directory_result.rb
Instance Method Summary collapse
-
#initialize(results) ⇒ DirectoryResult
constructor
A new instance of DirectoryResult.
- #message ⇒ Object
- #success? ⇒ Boolean
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
#message ⇒ Object
11 12 13 |
# File 'lib/bun_bo/results/directory_result.rb', line 11 def results.map(&:message).join("\n") end |
#success? ⇒ Boolean
7 8 9 |
# File 'lib/bun_bo/results/directory_result.rb', line 7 def success? results.all?(&:success?) end |