Sha256: a372fb2e227ad34ea6638a1d8e1222b0d41f1e55387e7cf5c1f4833566c03bee

Contents?: true

Size: 489 Bytes

Versions: 7

Compression:

Stored size: 489 Bytes

Contents

##
# A reporting output object for a post.
class ReportingPostOutput < SoberSwag::Reporting::Output::Struct
  identifier 'ReportingPostOutput'

  field :id, SoberSwag::Reporting::Output::Text.new.via_map(&:to_s)
  field :title, SoberSwag::Reporting::Output::Text.new
  field :body, SoberSwag::Reporting::Output::Text.new

  define_view :detail do
    field(
      :person,
      SoberSwag::Reporting::Output::Defer.defer do
        PersonOutputObject.view(:base)
      end
    )
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
sober_swag-0.25.2 example/app/output_objects/reporting_post_output.rb
sober_swag-0.25.1 example/app/output_objects/reporting_post_output.rb
sober_swag-0.25.0 example/app/output_objects/reporting_post_output.rb
sober_swag-0.24.1 example/app/output_objects/reporting_post_output.rb
sober_swag-0.24.0 example/app/output_objects/reporting_post_output.rb
sober_swag-0.23.0 example/app/output_objects/reporting_post_output.rb
sober_swag-0.22.0 example/app/output_objects/reporting_post_output.rb