Class: VolumeParserService

Inherits:
Object
  • Object
show all
Defined in:
lib/uffizzi/services/volume_parser_service.rb

Class Method Summary collapse

Class Method Details

.parse(volumes) ⇒ Object



5
6
7
8
9
10
11
# File 'lib/uffizzi/services/volume_parser_service.rb', line 5

def parse(volumes)
  return [] if volumes.empty?

  Uffizzi.ui.say("Volumes '#{volumes}' should be an array") unless volumes.is_a?(Array)

  volumes.map { |volume| parse_volume(volume) }
end