Class: Icarus::Mod::Tools::Modinfo

Inherits:
Baseinfo
  • Object
show all
Defined in:
lib/icarus/mod/tools/modinfo.rb

Overview

Sync methods

Constant Summary

Constants inherited from Baseinfo

Baseinfo::HASHKEYS

Instance Attribute Summary

Attributes inherited from Baseinfo

#created_at, #data, #id, #updated_at

Instance Method Summary collapse

Methods inherited from Baseinfo

#author_id, #errors, #errors?, #file_types, #file_urls, #initialize, #method_missing, #read, #respond_to_missing?, #status, #to_json, #uniq_name, #valid?, #warnings, #warnings?

Constructor Details

This class inherits a constructor from Icarus::Mod::Tools::Baseinfo

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class Icarus::Mod::Tools::Baseinfo

Instance Method Details

#to_hObject



10
11
12
13
14
15
# File 'lib/icarus/mod/tools/modinfo.rb', line 10

def to_h
  db_hash = super
  db_hash[:meta] = {status:} # Add metadata

  db_hash
end

#validateObject



17
18
19
20
21
22
23
# File 'lib/icarus/mod/tools/modinfo.rb', line 17

def validate
  return true if @validated

  validate_files

  super
end