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



121
122
123
# File 'lib/tree_haver/contracts.rb', line 121

def column
  @column
end

#rowObject

Returns the value of attribute row

Returns:

  • (Object)

    the current value of row



121
122
123
# File 'lib/tree_haver/contracts.rb', line 121

def row
  @row
end

Instance Method Details

#to_hObject



122
123
124
125
126
127
# File 'lib/tree_haver/contracts.rb', line 122

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