hensei-api/app/blueprints/api/v1/raid_group_blueprint.rb

25 lines
508 B
Ruby

# frozen_string_literal: true
module Api
module V1
class RaidGroupBlueprint < ApiBlueprint
view :flat do
identifier :id
field :name do |group|
{
en: group.name_en,
ja: group.name_jp
}
end
fields :difficulty, :order, :section, :extra, :guidebooks, :hl, :unlimited
end
view :full do
include_view :flat
association :raids, blueprint: RaidBlueprint, view: :nested
end
end
end
end