class Tidepool::JSONParser

Public Class Methods

new(body, format) click to toggle source

override parser initalizer to check for bad empty array before parsing this is a known bug in the Tidepool API

# File lib/tidepool/json_parser.rb, line 5
def initialize(body, format)
  @body = (body == "]") ? "[]" : body
  @format = format
end