Class: Chordsketch::ConversionWithWarnings

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

Overview

Record type ConversionWithWarnings

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(output:, warnings:) ⇒ ConversionWithWarnings

Returns a new instance of ConversionWithWarnings.



938
939
940
941
# File 'lib/chordsketch_uniffi.rb', line 938

def initialize(output:, warnings:)
  @output = output
  @warnings = warnings
end

Instance Attribute Details

#outputObject (readonly)

Returns the value of attribute output.



936
937
938
# File 'lib/chordsketch_uniffi.rb', line 936

def output
  @output
end

#warningsObject (readonly)

Returns the value of attribute warnings.



936
937
938
# File 'lib/chordsketch_uniffi.rb', line 936

def warnings
  @warnings
end

Instance Method Details

#==(other) ⇒ Object



943
944
945
946
947
948
949
950
951
952
# File 'lib/chordsketch_uniffi.rb', line 943

def ==(other)
  if @output != other.output
    return false
  end
  if @warnings != other.warnings
    return false
  end

  true
end