Class: Mork::Raw::Table
- Inherits:
-
Object
- Object
- Mork::Raw::Table
- Defined in:
- lib/mork/raw/table.rb
Overview
A table of rows
Instance Attribute Summary collapse
-
#raw_id ⇒ Object
readonly
Returns the value of attribute raw_id.
-
#values ⇒ Object
readonly
Returns the value of attribute values.
Instance Method Summary collapse
-
#initialize(raw_id:, values:) ⇒ Table
constructor
A new instance of Table.
- #resolve(dictionaries:) ⇒ Object
- #rows ⇒ Object
Constructor Details
#initialize(raw_id:, values:) ⇒ Table
Returns a new instance of Table.
15 16 17 18 |
# File 'lib/mork/raw/table.rb', line 15 def initialize(raw_id:, values:) @raw_id = raw_id @values = values end |
Instance Attribute Details
#raw_id ⇒ Object (readonly)
Returns the value of attribute raw_id.
12 13 14 |
# File 'lib/mork/raw/table.rb', line 12 def raw_id @raw_id end |
#values ⇒ Object (readonly)
Returns the value of attribute values.
13 14 15 |
# File 'lib/mork/raw/table.rb', line 13 def values @values end |
Instance Method Details
#resolve(dictionaries:) ⇒ Object
24 25 26 27 28 29 30 |
# File 'lib/mork/raw/table.rb', line 24 def resolve(dictionaries:) resolved_id = resolve_id(dictionaries) Resolved::Table.new( action: resolved_id.action, namespace: resolved_id.namespace, id: resolved_id.id, rows: resolved_rows(dictionaries) ) end |