Module: NcsNavigator::Warehouse::Models::MdesModel::ClassMethods

Defined in:
lib/ncs_navigator/warehouse/models/mdes_model.rb

Instance Method Summary collapse

Instance Method Details

#mdes_order(*variable_names) ⇒ Array<Symbol> #mdes_orderArray<Symbol>

Sets or retrieves the required property order.

Overloads:

  • #mdes_order(*variable_names) ⇒ Array<Symbol>

    Sets the output order.

    Parameters:

    • variables_names (Array<Symbol>)

      the order

  • #mdes_orderArray<Symbol>

    Retrieves the output order.

Returns:

  • (Array<Symbol>)


68
69
70
71
72
73
74
# File 'lib/ncs_navigator/warehouse/models/mdes_model.rb', line 68

def mdes_order(*input)
  if input.empty?
    @mdes_order
  else
    @mdes_order = input
  end
end

#mdes_table_nameString

The name of the table in the MDES corresponding to this model.

Returns:

  • (String)


54
55
56
# File 'lib/ncs_navigator/warehouse/models/mdes_model.rb', line 54

def mdes_table_name
  self.storage_names[:default]
end