hensei-api/app/blueprints/api/v1/job_blueprint.rb
Justin Edmund 67c004b2a4 Updates blueprints for new model attributes
* Renamed `ml` to `master_level`
* Added `ultimate_mastery` to Jobs and Parties
* Restructured `atk`, `hp`, `max_level`, and `max_skill_level` and other relevant attributes under a `stats` field on canonical objects
2023-03-10 23:24:18 -08:00

23 lines
444 B
Ruby

# frozen_string_literal: true
module Api
module V1
class JobBlueprint < ApiBlueprint
field :name do |job|
{
en: job.name_en,
ja: job.name_jp
}
end
field :proficiency do |job|
[
job.proficiency1,
job.proficiency2
]
end
fields :granblue_id, :row, :master_level, :ultimate_mastery, :order, :accessory, :accessory_type
end
end
end