Class: Bisque::ReportRow
- Inherits:
-
Object
- Object
- Bisque::ReportRow
- Defined in:
- lib/bisque/report_row.rb
Instance Method Summary collapse
-
#initialize(hash) ⇒ ReportRow
constructor
A new instance of ReportRow.
Constructor Details
#initialize(hash) ⇒ ReportRow
Returns a new instance of ReportRow.
3 4 5 6 7 8 9 10 |
# File 'lib/bisque/report_row.rb', line 3 def initialize(hash) @fields = hash hash.keys.each do |k| unless self.respond_to? k self.singleton_class.send(:define_method, k) { @fields[k] } end end end |