Class: Rafflesia::CorpuReleaseStructureTokenExtractionData
- Inherits:
-
Types::BaseModel
- Object
- Types::BaseModel
- Rafflesia::CorpuReleaseStructureTokenExtractionData
- Defined in:
- lib/rafflesia/datasets/corpu_release_structure_token_extraction_data.rb
Constant Summary collapse
- HASH_ATTRS =
{ binary_path: :binary_path, commands: :commands, input_count: :input_count, record_count: :record_count, sequence_residue_count: :sequence_residue_count, token_residue_count: :token_residue_count, tokens_sha256: :tokens_sha_256, tool_name: :tool_name, tool_version: :tool_version }.freeze
Instance Attribute Summary collapse
-
#binary_path ⇒ Object
Returns the value of attribute binary_path.
-
#commands ⇒ Object
Returns the value of attribute commands.
-
#input_count ⇒ Object
Returns the value of attribute input_count.
-
#record_count ⇒ Object
Returns the value of attribute record_count.
-
#sequence_residue_count ⇒ Object
Returns the value of attribute sequence_residue_count.
-
#token_residue_count ⇒ Object
Returns the value of attribute token_residue_count.
-
#tokens_sha_256 ⇒ Object
Returns the value of attribute tokens_sha_256.
-
#tool_name ⇒ Object
Returns the value of attribute tool_name.
-
#tool_version ⇒ Object
Returns the value of attribute tool_version.
Instance Method Summary collapse
-
#initialize(json) ⇒ CorpuReleaseStructureTokenExtractionData
constructor
A new instance of CorpuReleaseStructureTokenExtractionData.
Constructor Details
#initialize(json) ⇒ CorpuReleaseStructureTokenExtractionData
Returns a new instance of CorpuReleaseStructureTokenExtractionData.
31 32 33 34 35 36 37 38 39 40 41 42 43 |
# File 'lib/rafflesia/datasets/corpu_release_structure_token_extraction_data.rb', line 31 def initialize(json) super() hash = self.class.normalize(json) @binary_path = hash[:binary_path] @commands = (hash[:commands] || []).map { |item| (item || []) } @input_count = hash[:input_count] @record_count = hash[:record_count] @sequence_residue_count = hash[:sequence_residue_count] @token_residue_count = hash[:token_residue_count] @tokens_sha_256 = hash[:tokens_sha256] @tool_name = hash[:tool_name] @tool_version = hash[:tool_version] end |
Instance Attribute Details
#binary_path ⇒ Object
Returns the value of attribute binary_path.
20 21 22 |
# File 'lib/rafflesia/datasets/corpu_release_structure_token_extraction_data.rb', line 20 def binary_path @binary_path end |
#commands ⇒ Object
Returns the value of attribute commands.
20 21 22 |
# File 'lib/rafflesia/datasets/corpu_release_structure_token_extraction_data.rb', line 20 def commands @commands end |
#input_count ⇒ Object
Returns the value of attribute input_count.
20 21 22 |
# File 'lib/rafflesia/datasets/corpu_release_structure_token_extraction_data.rb', line 20 def input_count @input_count end |
#record_count ⇒ Object
Returns the value of attribute record_count.
20 21 22 |
# File 'lib/rafflesia/datasets/corpu_release_structure_token_extraction_data.rb', line 20 def record_count @record_count end |
#sequence_residue_count ⇒ Object
Returns the value of attribute sequence_residue_count.
20 21 22 |
# File 'lib/rafflesia/datasets/corpu_release_structure_token_extraction_data.rb', line 20 def sequence_residue_count @sequence_residue_count end |
#token_residue_count ⇒ Object
Returns the value of attribute token_residue_count.
20 21 22 |
# File 'lib/rafflesia/datasets/corpu_release_structure_token_extraction_data.rb', line 20 def token_residue_count @token_residue_count end |
#tokens_sha_256 ⇒ Object
Returns the value of attribute tokens_sha_256.
20 21 22 |
# File 'lib/rafflesia/datasets/corpu_release_structure_token_extraction_data.rb', line 20 def tokens_sha_256 @tokens_sha_256 end |
#tool_name ⇒ Object
Returns the value of attribute tool_name.
20 21 22 |
# File 'lib/rafflesia/datasets/corpu_release_structure_token_extraction_data.rb', line 20 def tool_name @tool_name end |
#tool_version ⇒ Object
Returns the value of attribute tool_version.
20 21 22 |
# File 'lib/rafflesia/datasets/corpu_release_structure_token_extraction_data.rb', line 20 def tool_version @tool_version end |