Class: Etna::Clients::Magma::RowBase

Inherits:
Object
  • Object
show all
Defined in:
lib/etna/clients/magma/workflows/update_attributes_from_csv_workflow.rb

Instance Method Summary collapse

Instance Method Details

#nil_or_empty?(value) ⇒ Boolean

Returns:

  • (Boolean)


59
60
61
# File 'lib/etna/clients/magma/workflows/update_attributes_from_csv_workflow.rb', line 59

def nil_or_empty?(value)
  value.nil? || value.empty?
end

#stripped_value(attribute_value) ⇒ Object



55
56
57
# File 'lib/etna/clients/magma/workflows/update_attributes_from_csv_workflow.rb', line 55

def stripped_value(attribute_value)
  attribute_value ? attribute_value.strip : attribute_value
end