Class: OrangeData::Correction

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

Overview

Correction

Instance Attribute Summary

Attributes inherited from Document

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

Instance Method Summary collapse

Methods inherited from Document

#as_json, from_hash, #to_json

Constructor Details

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

Returns a new instance of Correction.



232
233
234
235
# File 'lib/orange_data/receipt.rb', line 232

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