Class: Fustrate::Rails::Services::GenerateCsv
- Inherits:
-
Object
- Object
- Fustrate::Rails::Services::GenerateCsv
- Defined in:
- lib/fustrate/rails/services/generate_csv.rb
Instance Method Summary collapse
Instance Method Details
#call(data) ⇒ Object
10 |
# File 'lib/fustrate/rails/services/generate_csv.rb', line 10 def call(data) = data.first.is_a?(::Hash) ? csv_from_hash(data) : csv_from_array(data) |