Class: HubLink::Slicer

Inherits:
Object
  • Object
show all
Defined in:
lib/hub_link/slicer.rb

Instance Method Summary collapse

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_hObject



10
11
12
# File 'lib/hub_link/slicer.rb', line 10

def to_h
  normalized_attributes.with_indifferent_access
end