Class: SoftLayer::CLISerializer

Inherits:
Object
  • Object
show all
Defined in:
lib/softlayer/cli/formatter.rb

Class Method Summary collapse

Class Method Details

.serialize(output, output_file = nil) ⇒ Object



36
37
38
39
40
41
42
# File 'lib/softlayer/cli/formatter.rb', line 36

def self.serialize(output, output_file = nil)
  if output_file
    IO.write(output_file, output)
  else
    puts output
  end
end