Class: Retab::SplitSubdocumentLikelihood
- Inherits:
-
Types::BaseModel
- Object
- Types::BaseModel
- Retab::SplitSubdocumentLikelihood
- Defined in:
- lib/retab/splits/split_subdocument_likelihood.rb
Constant Summary collapse
- HASH_ATTRS =
{ name: :name, pages: :pages }.freeze
Instance Attribute Summary collapse
-
#name ⇒ Object
Returns the value of attribute name.
-
#pages ⇒ Object
Returns the value of attribute pages.
Attributes inherited from Types::BaseModel
Instance Method Summary collapse
-
#initialize(json) ⇒ SplitSubdocumentLikelihood
constructor
A new instance of SplitSubdocumentLikelihood.
Methods inherited from Types::BaseModel
#inspect, normalize, #to_h, #to_json
Constructor Details
#initialize(json) ⇒ SplitSubdocumentLikelihood
Returns a new instance of SplitSubdocumentLikelihood.
17 18 19 20 21 |
# File 'lib/retab/splits/split_subdocument_likelihood.rb', line 17 def initialize(json) hash = self.class.normalize(json) @name = hash[:name] @pages = (hash[:pages] || []) end |
Instance Attribute Details
#name ⇒ Object
Returns the value of attribute name.
13 14 15 |
# File 'lib/retab/splits/split_subdocument_likelihood.rb', line 13 def name @name end |
#pages ⇒ Object
Returns the value of attribute pages.
13 14 15 |
# File 'lib/retab/splits/split_subdocument_likelihood.rb', line 13 def pages @pages end |