Class: Rafflesia::CorpuReleaseStructureInputObject

Inherits:
Types::BaseModel
  • Object
show all
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

Instance Method Summary collapse

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_nameObject

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_idObject

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