Class: Cadenya::Types::ObjectiveFinalized

Inherits:
Object
  • Object
show all
Defined in:
lib/cadenya/types.rb

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(output: nil) ⇒ ObjectiveFinalized

Returns a new instance of ObjectiveFinalized.



3922
3923
3924
# File 'lib/cadenya/types.rb', line 3922

def initialize(output: nil)
  @output = output
end

Instance Attribute Details

#outputObject (readonly)

Returns the value of attribute output.



3920
3921
3922
# File 'lib/cadenya/types.rb', line 3920

def output
  @output
end

Class Method Details

.from_json(data) ⇒ Object



3926
3927
3928
3929
3930
# File 'lib/cadenya/types.rb', line 3926

def self.from_json(data)
  new(
    output: data["output"],
  )
end

Instance Method Details

#to_hObject



3932
3933
3934
3935
3936
# File 'lib/cadenya/types.rb', line 3932

def to_h
  {
    output: Util.plain(@output),
  }.reject { |_k, v| v.nil? }
end