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