Class: Nfcollector::Mapping::MappedRow
- Inherits:
-
Array
- Object
- Array
- Nfcollector::Mapping::MappedRow
- Defined in:
- lib/nfcollector/mapping/mapped_row.rb
Instance Attribute Summary collapse
- #category_ids ⇒ Object
-
#id ⇒ Object
Returns the value of attribute id.
Instance Method Summary collapse
-
#initialize(*args) ⇒ MappedRow
constructor
A new instance of MappedRow.
- #inspect ⇒ Object
Constructor Details
#initialize(*args) ⇒ MappedRow
Returns a new instance of MappedRow.
7 8 9 10 |
# File 'lib/nfcollector/mapping/mapped_row.rb', line 7 def initialize(*args) super() concat(args) end |
Instance Attribute Details
#category_ids ⇒ Object
12 13 14 |
# File 'lib/nfcollector/mapping/mapped_row.rb', line 12 def category_ids @category_ids || [] end |
#id ⇒ Object
Returns the value of attribute id.
5 6 7 |
# File 'lib/nfcollector/mapping/mapped_row.rb', line 5 def id @id end |
Instance Method Details
#inspect ⇒ Object
16 17 18 |
# File 'lib/nfcollector/mapping/mapped_row.rb', line 16 def inspect Array([@id, super]).compact.join(":") end |