class TrelloDXY::Formatters::Base

Attributes

data[R]

Public Class Methods

new(data) click to toggle source
# File lib/trello_dxy/formatters/base.rb, line 4
def initialize(data)
  @data = data
end

Public Instance Methods

output(format) click to toggle source
# File lib/trello_dxy/formatters/base.rb, line 8
def output(format)
  case format
  when 'json'
    self.to_json
  else 'csv'
    self.to_csv
  end
end