class Mindee::Product::US::UsMail::UsMailV2Page

US Mail API version 2.0 page data.

def initialize(prediction)

Parameters:
  • prediction (Hash) --
def initialize(prediction)
  super
  @prediction = if prediction['prediction'].empty?
                  nil
                else
                  UsMailV2PagePrediction.new(
                    prediction['prediction'],
                    prediction['id']
                  )
                end
end