Sha256: c63f8207c92e92e19abee40a302dc7e6016e3d297e633289110713eb05f4ea2a

Contents?: true

Size: 497 Bytes

Versions: 1

Compression:

Stored size: 497 Bytes

Contents

# frozen_string_literal: true

require_relative "./base_response"

module Roseflow
  module StabilityAI
    module Responses
      class ImageToImageResponse < 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/image_to_image_response.rb