Class: TurbineRb::Records

Inherits:
SimpleDelegator
  • Object
show all
Defined in:
lib/turbine_rb/records.rb

Overview

rubocop:enable Metrics/ClassLength

Instance Method Summary collapse

Constructor Details

#initialize(pb_records) ⇒ Records



139
140
141
142
143
# File 'lib/turbine_rb/records.rb', line 139

def initialize(pb_records)
  super
  records = pb_records.map { |r| Record.new(r) }
  __setobj__(records)
end

Instance Method Details

#unwrap!Object



145
146
147
148
# File 'lib/turbine_rb/records.rb', line 145

def unwrap!
  records = __getobj__
  records.each(&:unwrap!)
end