hensei-api/app/blueprints/api/v1/job_blueprint.rb
Justin Edmund 27441146ed
Re-implement latest PRs on a clean Git history (#86)
* Add granblue_id to WeaponKeys (#77)

Reimplementing #77

* Adds Ultimate Mastery and renames Master Level (#78)

* Render :created view on remix (#84)

This view is required as it shows the `edit_key` for unauth users
2023-03-17 05:03:50 -07:00

25 lines
470 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, :order,
:master_level, :ultimate_mastery,
:accessory, :accessory_type
end
end
end