module Wakdata::RestAPI::CryoMongo
Defined in:
wakdata/rest-api/cryomongo.crConstant Summary
-
CLIENT =
Mongo::Client.new(CONFIG.mongo_connection_string)
-
CONFIG =
Config.from_json(CONFIG_FILE)
-
CONFIG_FILE =
File.open("./mongo-config.json")
-
DB =
CLIENT[CONFIG.database]
-
VERSIONS_DATA =
DB["versions"]
Class Method Summary
- .add_version_to_mongo_versions(all_data_name : String, version : String)
- .retrieve_actions_for(version : String) : Array(Wakdata::Action) | Nil
- .retrieve_blueprints_for(version : String) : Array(Wakdata::Blueprint) | Nil
- .retrieve_collectibleResources_for(version : String) : Array(Wakdata::CollectibleResource) | Nil
- .retrieve_equipmentItemTypes_for(version : String) : Array(Wakdata::ItemType) | Nil
- .retrieve_harvestLoots_for(version : String) : Array(Wakdata::HarvestLoot) | Nil
- .retrieve_itemProperties_for(version : String) : Array(Wakdata::ItemProperty) | Nil
- .retrieve_items_for(version : String) : Array(Wakdata::Item) | Nil
- .retrieve_itemTypes_for(version : String) : Array(Wakdata::ItemType) | Nil
- .retrieve_jobItems_for(version : String) : Array(Wakdata::JobItem) | Nil
- .retrieve_recipeCategories_for(version : String) : Array(Wakdata::RecipeCategory) | Nil
- .retrieve_recipeIngredients_for(version : String) : Array(Wakdata::RecipeIngredient) | Nil
- .retrieve_recipeResults_for(version : String) : Array(Wakdata::RecipeResult) | Nil
- .retrieve_recipes_for(version : String) : Array(Wakdata::Recipe) | Nil
- .retrieve_resources_for(version : String) : Array(Wakdata::Resource) | Nil
- .retrieve_resourceTypes_for(version : String) : Array(Wakdata::ResourceType) | Nil
- .retrieve_states_for(version : String) : Array(Wakdata::State) | Nil
- .retrieve_versions(all_data_name : String) : VersionData | Nil
- .save_actions_for(version : String, data : Array(Wakdata::Action))
- .save_blueprints_for(version : String, data : Array(Wakdata::Blueprint))
- .save_collectibleResources_for(version : String, data : Array(Wakdata::CollectibleResource))
- .save_equipmentItemTypes_for(version : String, data : Array(Wakdata::ItemType))
- .save_harvestLoots_for(version : String, data : Array(Wakdata::HarvestLoot))
- .save_itemProperties_for(version : String, data : Array(Wakdata::ItemProperty))
- .save_items_for(version : String, data : Array(Wakdata::Item))
- .save_itemTypes_for(version : String, data : Array(Wakdata::ItemType))
- .save_jobItems_for(version : String, data : Array(Wakdata::JobItem))
- .save_recipeCategories_for(version : String, data : Array(Wakdata::RecipeCategory))
- .save_recipeIngredients_for(version : String, data : Array(Wakdata::RecipeIngredient))
- .save_recipeResults_for(version : String, data : Array(Wakdata::RecipeResult))
- .save_recipes_for(version : String, data : Array(Wakdata::Recipe))
- .save_resources_for(version : String, data : Array(Wakdata::Resource))
- .save_resourceTypes_for(version : String, data : Array(Wakdata::ResourceType))
- .save_states_for(version : String, data : Array(Wakdata::State))
Macro Summary
- define_retrieve_data_for(all_data_name, struct_name)
- define_save_data_for(all_data_name, struct_name)
Class Method Detail
def self.retrieve_collectibleResources_for(version : String) : Array(Wakdata::CollectibleResource) | Nil
#
def self.retrieve_recipeIngredients_for(version : String) : Array(Wakdata::RecipeIngredient) | Nil
#
def self.save_collectibleResources_for(version : String, data : Array(Wakdata::CollectibleResource))
#