Module: ProxyRb::Api::Formatters

Included in:
ProxyRb::Api
Defined in:
lib/proxy_rb/api/formatters.rb

Overview

Formatters for output

Instance Method Summary collapse

Instance Method Details

#simple_table(hash) ⇒ String

Convert Hash to simple table

Parameters:

  • hash (Hash)

    the hash which should be converted

Returns:

  • (String)

    The generated table



15
16
17
# File 'lib/proxy_rb/api/formatters.rb', line 15

def simple_table(hash)
  SimpleTable.new(hash).to_s
end