Class: OrangeData::Correction

Inherits:
Document
  • Object
show all
Defined in:
lib/orange_data/receipt.rb

Overview

Correction

Instance Attribute Summary

Attributes inherited from Document

#content, #group, #id, #inn, #key_name

Instance Method Summary collapse

Methods inherited from Document

#to_json

Constructor Details

#initialize(id: SecureRandom.uuid, inn:, group: nil, key_name: nil, content: nil) ⇒ Correction

Returns a new instance of Correction.



210
211
212
213
# File 'lib/orange_data/receipt.rb', line 210

def initialize(id:SecureRandom.uuid, inn:, group:nil, key_name:nil, content:nil)
  @content = CorrectionContent.new(content || {})
  super
end