Class: Lionel::Export::CardMap
- Inherits:
-
Object
- Object
- Lionel::Export::CardMap
- Includes:
- Enumerable
- Defined in:
- lib/lionel/export.rb
Instance Attribute Summary collapse
-
#cards ⇒ Object
readonly
Returns the value of attribute cards.
-
#worksheet ⇒ Object
readonly
Returns the value of attribute worksheet.
Instance Method Summary collapse
- #each(&block) ⇒ Object
-
#initialize(cards, worksheet) ⇒ CardMap
constructor
A new instance of CardMap.
- #rows ⇒ Object
Constructor Details
#initialize(cards, worksheet) ⇒ CardMap
Returns a new instance of CardMap.
173 174 175 |
# File 'lib/lionel/export.rb', line 173 def initialize(cards, worksheet) @cards, @worksheet = cards, worksheet end |
Instance Attribute Details
#cards ⇒ Object (readonly)
Returns the value of attribute cards.
171 172 173 |
# File 'lib/lionel/export.rb', line 171 def cards @cards end |
#worksheet ⇒ Object (readonly)
Returns the value of attribute worksheet.
171 172 173 |
# File 'lib/lionel/export.rb', line 171 def worksheet @worksheet end |
Instance Method Details
#each(&block) ⇒ Object
177 178 179 |
# File 'lib/lionel/export.rb', line 177 def each(&block) rows.each(&block) end |
#rows ⇒ Object
181 182 183 |
# File 'lib/lionel/export.rb', line 181 def rows @rows ||= populate_rows end |