Sha256: 4da432d3c49bc65d4d845615d8c300832fcbd7f15be592fe9f514dbec868ba8d

Contents?: true

Size: 403 Bytes

Versions: 1

Compression:

Stored size: 403 Bytes

Contents

# frozen_string_literal: true

module Roseflow
  module StabilityAI
    module Operations
      class Base < Dry::Struct
        transform_keys(&:to_sym)

        attribute :engine_id, Types::String

        def excluded_keys
          [:path]
        end

        def multipart?
          true
        end

        def body
          to_h.except(*excluded_keys)
        end
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
roseflow-stabilityai-0.1.0 lib/roseflow/stabilityai/operations/base.rb