Module: Mode::Sdk::WarehouseUtil

Included in:
Column, Table
Defined in:
lib/mode/sdk/warehouse_util.rb

Overview

Provides simple utility methods for use with the Mode public data warehouse

Instance Method Summary collapse

Instance Method Details

#normalize_name(name) ⇒ String

Normalize and truncate a string for use as a Mode warehouse table or column name

Parameters:

  • name (String)

    the original name

Returns:

  • (String)

    the normalized name


16
17
18
# File 'lib/mode/sdk/warehouse_util.rb', line 16

def normalize_name(name)
  normalize_string(name)[0..63]
end