Sha256: 2979f9263485bb244745809a1dd9469ded233d3e6e488015fd05f58dd778e838

Contents?: true

Size: 492 Bytes

Versions: 1

Compression:

Stored size: 492 Bytes

Contents

# frozen_string_literal: true

require_relative "./base_response"

module Roseflow
  module StabilityAI
    module Responses
      class MaskingResponse < BaseResponse
        transform_keys { |key| key.to_s.underscore.to_sym }

        attribute :artifacts, Types::Array do
          attribute :base64, Types::String
          attribute :finish_reason, Types::String
          attribute :seed, Types::Integer
        end

        alias_method :images, :artifacts
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
roseflow-stabilityai-0.1.0 lib/roseflow/stabilityai/responses/masking_response.rb