lib/seatsio/domain.rb in seatsio-11 vs lib/seatsio/domain.rb in seatsio-12
- old
+ new
@@ -38,9 +38,18 @@
@categories = ChartCategories.new(data['categories'])
end
end
+ class ChartValidationResult
+ attr_reader :errors, :warnings
+
+ def initialize(data)
+ @errors = data['errors']
+ @warnings = data['warnings']
+ end
+ end
+
class ChartDraft < Chart
attr_reader :version
def initialize(data)
super(data)