class OrangeData::CorrectionResult
Attributes
content[R]
Public Class Methods
from_hash(hash)
click to toggle source
# File lib/orange_data/receipt.rb, line 255 def self.from_hash(hash) return if hash.nil? raise ArgumentError, 'Expect hash here' unless hash.is_a?(Hash) new(hash) end
new(payload)
click to toggle source
# File lib/orange_data/receipt.rb, line 250 def initialize(payload) @payload = payload || {} @content = CorrectionContent.new(@payload["content"] || {}) end