Class: BusinessCatalyst::CSV::BooleanTransformer

Inherits:
Transformer
  • Object
show all
Defined in:
lib/business_catalyst/csv/transformers.rb

Instance Attribute Summary

Attributes inherited from Transformer

#input

Instance Method Summary collapse

Methods inherited from Transformer

#initialize, transform

Constructor Details

This class inherits a constructor from BusinessCatalyst::CSV::Transformer

Instance Method Details

#transformObject



33
34
35
# File 'lib/business_catalyst/csv/transformers.rb', line 33

def transform
  input ? "Y" : "N"
end