Class: TreeHaver::SourcePoint

Inherits:
Struct
  • Object
show all
Defined in:
lib/tree_haver/contracts.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#columnObject

Returns the value of attribute column

Returns:

  • (Object)

    the current value of column



508
509
510
# File 'lib/tree_haver/contracts.rb', line 508

def column
  @column
end

#rowObject

Returns the value of attribute row

Returns:

  • (Object)

    the current value of row



508
509
510
# File 'lib/tree_haver/contracts.rb', line 508

def row
  @row
end

Instance Method Details

#to_hObject



509
510
511
512
513
514
# File 'lib/tree_haver/contracts.rb', line 509

def to_h
  {
    row: row,
    column: column
  }
end