Class: Bisque::ReportRow

Inherits:
Object
  • Object
show all
Defined in:
lib/bisque/report_row.rb

Instance Method Summary collapse

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