Class: Mork::Raw::Row
- Inherits:
-
Object
- Object
- Mork::Raw::Row
- Defined in:
- lib/mork/raw/row.rb
Overview
A row of cells
Instance Attribute Summary collapse
-
#cells ⇒ Object
readonly
Returns the value of attribute cells.
-
#raw_id ⇒ Object
readonly
Returns the value of attribute raw_id.
Instance Method Summary collapse
-
#initialize(raw_id:, cells:) ⇒ Row
constructor
A new instance of Row.
- #resolve(dictionaries:) ⇒ Object
Constructor Details
#initialize(raw_id:, cells:) ⇒ Row
Returns a new instance of Row.
14 15 16 17 |
# File 'lib/mork/raw/row.rb', line 14 def initialize(raw_id:, cells:) @raw_id = raw_id @cells = cells end |
Instance Attribute Details
#cells ⇒ Object (readonly)
Returns the value of attribute cells.
12 13 14 |
# File 'lib/mork/raw/row.rb', line 12 def cells @cells end |
#raw_id ⇒ Object (readonly)
Returns the value of attribute raw_id.
11 12 13 |
# File 'lib/mork/raw/row.rb', line 11 def raw_id @raw_id end |
Instance Method Details
#resolve(dictionaries:) ⇒ Object
19 20 21 22 23 24 25 26 27 |
# File 'lib/mork/raw/row.rb', line 19 def resolve(dictionaries:) resolved_id = raw_id_resolver.resolve(dictionaries: dictionaries) Resolved::Row.new( action: resolved_id.action, namespace: resolved_id.namespace, id: resolved_id.id, cells: resolved_cells(dictionaries) ) end |