Class: Cpr::ReqDocument
- Inherits:
-
Object
- Object
- Cpr::ReqDocument
- Defined in:
- lib/cpr/req_document.rb
Instance Attribute Summary collapse
-
#rows ⇒ Object
readonly
Returns the value of attribute rows.
Instance Method Summary collapse
- #data ⇒ Object
-
#initialize ⇒ ReqDocument
constructor
A new instance of ReqDocument.
Constructor Details
#initialize ⇒ ReqDocument
Returns a new instance of ReqDocument.
5 6 7 |
# File 'lib/cpr/req_document.rb', line 5 def initialize @rows = [] end |
Instance Attribute Details
#rows ⇒ Object (readonly)
Returns the value of attribute rows.
4 5 6 |
# File 'lib/cpr/req_document.rb', line 4 def rows @rows end |
Instance Method Details
#data ⇒ Object
9 10 11 |
# File 'lib/cpr/req_document.rb', line 9 def data @rows.map(&:data)*"\r\n" end |