Class: Roseflow::StabilityAI::Operations::Base

Inherits:
Dry::Struct
  • Object
show all
Defined in:
lib/roseflow/stabilityai/operations/base.rb

Direct Known Subclasses

ImageToImage, Masking, TextToImage, Upscale

Instance Method Summary collapse

Instance Method Details

#bodyObject



19
20
21
# File 'lib/roseflow/stabilityai/operations/base.rb', line 19

def body
  to_h.except(*excluded_keys)
end

#excluded_keysObject



11
12
13
# File 'lib/roseflow/stabilityai/operations/base.rb', line 11

def excluded_keys
  [:path]
end

#multipart?Boolean

Returns:

  • (Boolean)


15
16
17
# File 'lib/roseflow/stabilityai/operations/base.rb', line 15

def multipart?
  true
end