Class: Retab::UsagePrimitiveDocument
- Inherits:
-
Types::BaseModel
- Object
- Types::BaseModel
- Retab::UsagePrimitiveDocument
- Defined in:
- lib/retab/usage/usage_primitive_document.rb
Constant Summary collapse
- HASH_ATTRS =
{ file_id: :file_id, filename: :filename }.freeze
Instance Attribute Summary collapse
-
#file_id ⇒ Object
Returns the value of attribute file_id.
-
#filename ⇒ Object
Returns the value of attribute filename.
Instance Method Summary collapse
-
#initialize(json) ⇒ UsagePrimitiveDocument
constructor
A new instance of UsagePrimitiveDocument.
Constructor Details
#initialize(json) ⇒ UsagePrimitiveDocument
Returns a new instance of UsagePrimitiveDocument.
18 19 20 21 22 23 |
# File 'lib/retab/usage/usage_primitive_document.rb', line 18 def initialize(json) super() hash = self.class.normalize(json) @file_id = hash[:file_id] @filename = hash[:filename] end |
Instance Attribute Details
#file_id ⇒ Object
Returns the value of attribute file_id.
13 14 15 |
# File 'lib/retab/usage/usage_primitive_document.rb', line 13 def file_id @file_id end |
#filename ⇒ Object
Returns the value of attribute filename.
13 14 15 |
# File 'lib/retab/usage/usage_primitive_document.rb', line 13 def filename @filename end |