Sha256: 12c72e2f4090267d7faca4eeb5b2ddb4059ce10fc2d429187565bcb648e5a094

Contents?: true

Size: 258 Bytes

Versions: 7

Compression:

Stored size: 258 Bytes

Contents

##
# Base serializer for objects with a global id of some variety.
class IdentifiedOutput < SoberSwag::Reporting::Output::Struct
  field :global_id, SoberSwag::Reporting::Output.text.nilable do
    object_to_serialize.try(:to_global_id).try(:to_s)
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

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