Class: Chordsketch::ValidationError

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

Overview

Record type ValidationError

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(line:, column:, message:) ⇒ ValidationError

Returns a new instance of ValidationError.



1111
1112
1113
1114
1115
# File 'lib/chordsketch_uniffi.rb', line 1111

def initialize(line:, column:, message:)
  @line = line
  @column = column
  @message = message
end

Instance Attribute Details

#columnObject (readonly)

Returns the value of attribute column.



1109
1110
1111
# File 'lib/chordsketch_uniffi.rb', line 1109

def column
  @column
end

#lineObject (readonly)

Returns the value of attribute line.



1109
1110
1111
# File 'lib/chordsketch_uniffi.rb', line 1109

def line
  @line
end

#messageObject (readonly)

Returns the value of attribute message.



1109
1110
1111
# File 'lib/chordsketch_uniffi.rb', line 1109

def message
  @message
end

Instance Method Details

#==(other) ⇒ Object



1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
# File 'lib/chordsketch_uniffi.rb', line 1117

def ==(other)
  if @line != other.line
    return false
  end
  if @column != other.column
    return false
  end
  if @message != other.message
    return false
  end

  true
end