Class: Rafflesia::StructureParserMetadata
- Inherits:
-
Types::BaseModel
- Object
- Types::BaseModel
- Rafflesia::StructureParserMetadata
- Defined in:
- lib/rafflesia/proteins/structure_parser_metadata.rb
Constant Summary collapse
- HASH_ATTRS =
{ input_format: :input_format, name: :name, version: :version }.freeze
Instance Attribute Summary collapse
-
#input_format ⇒ Object
Returns the value of attribute input_format.
-
#name ⇒ Object
Returns the value of attribute name.
-
#version ⇒ Object
Returns the value of attribute version.
Instance Method Summary collapse
-
#initialize(json) ⇒ StructureParserMetadata
constructor
A new instance of StructureParserMetadata.
Constructor Details
#initialize(json) ⇒ StructureParserMetadata
Returns a new instance of StructureParserMetadata.
19 20 21 22 23 24 25 |
# File 'lib/rafflesia/proteins/structure_parser_metadata.rb', line 19 def initialize(json) super() hash = self.class.normalize(json) @input_format = hash[:input_format] @name = hash[:name] @version = hash[:version] end |
Instance Attribute Details
#input_format ⇒ Object
Returns the value of attribute input_format.
14 15 16 |
# File 'lib/rafflesia/proteins/structure_parser_metadata.rb', line 14 def input_format @input_format end |
#name ⇒ Object
Returns the value of attribute name.
14 15 16 |
# File 'lib/rafflesia/proteins/structure_parser_metadata.rb', line 14 def name @name end |
#version ⇒ Object
Returns the value of attribute version.
14 15 16 |
# File 'lib/rafflesia/proteins/structure_parser_metadata.rb', line 14 def version @version end |