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.



1001
1002
1003
1004
1005
# File 'lib/chordsketch_uniffi.rb', line 1001

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

Instance Attribute Details

#columnObject (readonly)

Returns the value of attribute column.



999
1000
1001
# File 'lib/chordsketch_uniffi.rb', line 999

def column
  @column
end

#lineObject (readonly)

Returns the value of attribute line.



999
1000
1001
# File 'lib/chordsketch_uniffi.rb', line 999

def line
  @line
end

#messageObject (readonly)

Returns the value of attribute message.



999
1000
1001
# File 'lib/chordsketch_uniffi.rb', line 999

def message
  @message
end

Instance Method Details

#==(other) ⇒ Object



1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
# File 'lib/chordsketch_uniffi.rb', line 1007

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