Class: Opencdd::Parcel::Sheet::EntitiesProxy
- Inherits:
-
Object
- Object
- Opencdd::Parcel::Sheet::EntitiesProxy
- Includes:
- Enumerable
- Defined in:
- lib/opencdd/parcel/sheet.rb
Instance Attribute Summary collapse
-
#database ⇒ Object
readonly
Returns the value of attribute database.
-
#sheet ⇒ Object
readonly
Returns the value of attribute sheet.
Instance Method Summary collapse
- #each ⇒ Object
-
#initialize(sheet, database) ⇒ EntitiesProxy
constructor
A new instance of EntitiesProxy.
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
#database ⇒ Object (readonly)
Returns the value of attribute database.
268 269 270 |
# File 'lib/opencdd/parcel/sheet.rb', line 268 def database @database end |
#sheet ⇒ Object (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
#each ⇒ Object
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 |