Class: Mork::Data

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

Overview

The pure data extracted from a Mork file

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(rows:, tables:) ⇒ Data

Returns a new instance of Data.



9
10
11
12
# File 'lib/mork/data.rb', line 9

def initialize(rows:, tables:)
  @rows = rows
  @tables = tables
end

Instance Attribute Details

#rowsObject (readonly)

Returns the value of attribute rows.



6
7
8
# File 'lib/mork/data.rb', line 6

def rows
  @rows
end

#tablesObject (readonly)

Returns the value of attribute tables.



7
8
9
# File 'lib/mork/data.rb', line 7

def tables
  @tables
end