Class: Intersys::Query

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

Overview

Class representing one query You shouldn’t create it yourself

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#databaseObject (readonly)

Returns the value of attribute database.



81
82
83
# File 'lib/intersys.rb', line 81

def database
  @database
end

Instance Method Details

#fill(data) ⇒ Object



89
90
91
92
# File 'lib/intersys.rb', line 89

def fill(data)
  self.each {|row| data << row}
  self
end

#to_aObject



83
84
85
86
87
# File 'lib/intersys.rb', line 83

def to_a
  data = []
  self.each {|row| data << row}
  data
end