Class: HubLink::Slicer
- Inherits:
-
Object
- Object
- HubLink::Slicer
- Defined in:
- lib/hub_link/slicer.rb
Instance Method Summary collapse
-
#initialize(record, columns: []) ⇒ Slicer
constructor
A new instance of Slicer.
- #to_h ⇒ Object
Constructor Details
#initialize(record, columns: []) ⇒ Slicer
Returns a new instance of Slicer.
5 6 7 8 |
# File 'lib/hub_link/slicer.rb', line 5 def initialize(record, columns: []) @record = record @columns = columns end |
Instance Method Details
#to_h ⇒ Object
10 11 12 |
# File 'lib/hub_link/slicer.rb', line 10 def to_h normalized_attributes.with_indifferent_access end |