Class: Mindee::Product::US::UsMail::UsMailV3Page

Inherits:
Mindee::Parsing::Common::Page show all
Defined in:
lib/mindee/product/us/us_mail/us_mail_v3_page.rb

Overview

US Mail API version 3.0 page data.

Instance Attribute Summary

Attributes inherited from Mindee::Parsing::Common::Page

#extras, #orientation, #page_id, #prediction

Instance Method Summary collapse

Methods inherited from Mindee::Parsing::Common::Page

#to_s

Constructor Details

#initialize(prediction) ⇒ UsMailV3Page

Returns a new instance of UsMailV3Page.

Parameters:

  • prediction (Hash)


13
14
15
16
17
18
19
# File 'lib/mindee/product/us/us_mail/us_mail_v3_page.rb', line 13

def initialize(prediction)
  super(prediction)
  @prediction = UsMailV3PagePrediction.new(
    prediction['prediction'],
    prediction['id']
  )
end