Class: Opencdd::Parcel::Sheet::EntitiesProxy

Inherits:
Object
  • Object
show all
Includes:
Enumerable
Defined in:
lib/opencdd/parcel/sheet.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(sheet, database) ⇒ EntitiesProxy

Returns a new instance of EntitiesProxy.



270
271
272
273
# File 'lib/opencdd/parcel/sheet.rb', line 270

def initialize(sheet, database)
  @sheet = sheet
  @database = database
end

Instance Attribute Details

#databaseObject (readonly)

Returns the value of attribute database.



268
269
270
# File 'lib/opencdd/parcel/sheet.rb', line 268

def database
  @database
end

#sheetObject (readonly)

Returns the value of attribute sheet.



268
269
270
# File 'lib/opencdd/parcel/sheet.rb', line 268

def sheet
  @sheet
end

Instance Method Details

#eachObject



275
276
277
278
279
280
281
# File 'lib/opencdd/parcel/sheet.rb', line 275

def each
  return enum_for(:each) unless block_given?

  sheet.each do |row|
    yield row
  end
end