Sha256: 3a294f2f7ebe2a8139249b68dc95b5b87419fca57dde2c03008484e43ba13c0f

Contents?: true

Size: 278 Bytes

Versions: 1

Compression:

Stored size: 278 Bytes

Contents

module TaskwarriorWeb::Parser
  autoload :Json, 'taskwarrior-web/parser/json'
  autoload :Csv,  'taskwarrior-web/parser/csv'

  def self.parse(results)
    if TaskwarriorWeb::Config.version > '1.9.2'
      Json.parse(results)
    else
      Csv.parse(results)
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
taskwarrior-web-1.0.8 lib/taskwarrior-web/parser.rb