Class: Rafflesia::StructureParserMetadata

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

Instance Method Summary collapse

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_formatObject

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

#nameObject

Returns the value of attribute name.



14
15
16
# File 'lib/rafflesia/proteins/structure_parser_metadata.rb', line 14

def name
  @name
end

#versionObject

Returns the value of attribute version.



14
15
16
# File 'lib/rafflesia/proteins/structure_parser_metadata.rb', line 14

def version
  @version
end