Class: Rafflesia::MapParserMetadata

Inherits:
Types::BaseModel
  • Object
show all
Defined in:
lib/rafflesia/artifacts/map_parser_metadata.rb

Constant Summary collapse

HASH_ATTRS =
{
  format: :format,
  name: :name,
  version: :version
}.freeze

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(json) ⇒ MapParserMetadata

Returns a new instance of MapParserMetadata.



19
20
21
22
23
24
25
# File 'lib/rafflesia/artifacts/map_parser_metadata.rb', line 19

def initialize(json)
  super()
  hash = self.class.normalize(json)
  @format = hash[:format]
  @name = hash[:name]
  @version = hash[:version]
end

Instance Attribute Details

#formatObject

Returns the value of attribute format.



14
15
16
# File 'lib/rafflesia/artifacts/map_parser_metadata.rb', line 14

def format
  @format
end

#nameObject

Returns the value of attribute name.



14
15
16
# File 'lib/rafflesia/artifacts/map_parser_metadata.rb', line 14

def name
  @name
end

#versionObject

Returns the value of attribute version.



14
15
16
# File 'lib/rafflesia/artifacts/map_parser_metadata.rb', line 14

def version
  @version
end