Class: AILabTools::Generated::Params::ImageAiImageExtenderParams

Inherits:
Params
  • Object
show all
Defined in:
lib/ailabtools/generated/params/image_ai_image_extender_params.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(custom_prompt: nil, steps: nil, strength: nil, scale: nil, seed: nil, max_height: nil, max_width: nil, image:, top: nil, bottom: nil, left: nil, right: nil, mask: nil) ⇒ ImageAiImageExtenderParams

Returns a new instance of ImageAiImageExtenderParams.



8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
# File 'lib/ailabtools/generated/params/image_ai_image_extender_params.rb', line 8

def initialize(custom_prompt: nil, steps: nil, strength: nil, scale: nil, seed: nil, max_height: nil, max_width: nil, image:, top: nil, bottom: nil, left: nil, right: nil, mask: nil)
  @custom_prompt = custom_prompt
  @steps = steps
  @strength = strength
  @scale = scale
  @seed = seed
  @max_height = max_height
  @max_width = max_width
  @image = image
  @top = top
  @bottom = bottom
  @left = left
  @right = right
  @mask = mask
end

Instance Attribute Details

#bottomObject (readonly)

Returns the value of attribute bottom.



7
8
9
# File 'lib/ailabtools/generated/params/image_ai_image_extender_params.rb', line 7

def bottom
  @bottom
end

#custom_promptObject (readonly)

Returns the value of attribute custom_prompt.



7
8
9
# File 'lib/ailabtools/generated/params/image_ai_image_extender_params.rb', line 7

def custom_prompt
  @custom_prompt
end

#imageObject (readonly)

Returns the value of attribute image.



7
8
9
# File 'lib/ailabtools/generated/params/image_ai_image_extender_params.rb', line 7

def image
  @image
end

#leftObject (readonly)

Returns the value of attribute left.



7
8
9
# File 'lib/ailabtools/generated/params/image_ai_image_extender_params.rb', line 7

def left
  @left
end

#maskObject (readonly)

Returns the value of attribute mask.



7
8
9
# File 'lib/ailabtools/generated/params/image_ai_image_extender_params.rb', line 7

def mask
  @mask
end

#max_heightObject (readonly)

Returns the value of attribute max_height.



7
8
9
# File 'lib/ailabtools/generated/params/image_ai_image_extender_params.rb', line 7

def max_height
  @max_height
end

#max_widthObject (readonly)

Returns the value of attribute max_width.



7
8
9
# File 'lib/ailabtools/generated/params/image_ai_image_extender_params.rb', line 7

def max_width
  @max_width
end

#rightObject (readonly)

Returns the value of attribute right.



7
8
9
# File 'lib/ailabtools/generated/params/image_ai_image_extender_params.rb', line 7

def right
  @right
end

#scaleObject (readonly)

Returns the value of attribute scale.



7
8
9
# File 'lib/ailabtools/generated/params/image_ai_image_extender_params.rb', line 7

def scale
  @scale
end

#seedObject (readonly)

Returns the value of attribute seed.



7
8
9
# File 'lib/ailabtools/generated/params/image_ai_image_extender_params.rb', line 7

def seed
  @seed
end

#stepsObject (readonly)

Returns the value of attribute steps.



7
8
9
# File 'lib/ailabtools/generated/params/image_ai_image_extender_params.rb', line 7

def steps
  @steps
end

#strengthObject (readonly)

Returns the value of attribute strength.



7
8
9
# File 'lib/ailabtools/generated/params/image_ai_image_extender_params.rb', line 7

def strength
  @strength
end

#topObject (readonly)

Returns the value of attribute top.



7
8
9
# File 'lib/ailabtools/generated/params/image_ai_image_extender_params.rb', line 7

def top
  @top
end

Instance Method Details

#body_fieldsObject



28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
# File 'lib/ailabtools/generated/params/image_ai_image_extender_params.rb', line 28

def body_fields
  compact_hash({
    "custom_prompt" => @custom_prompt,
    "steps" => @steps,
    "strength" => @strength,
    "scale" => @scale,
    "seed" => @seed,
    "max_height" => @max_height,
    "max_width" => @max_width,
    "image" => @image,
    "top" => @top,
    "bottom" => @bottom,
    "left" => @left,
    "right" => @right,
    "mask" => @mask,
  })
end

#query_fieldsObject



24
25
26
# File 'lib/ailabtools/generated/params/image_ai_image_extender_params.rb', line 24

def query_fields
  {}
end