Class: Spider::Model::Storage::Db::FieldFunction
- Inherits:
-
Object
- Object
- Spider::Model::Storage::Db::FieldFunction
- Defined in:
- lib/spiderfw/model/storage/db/db_schema.rb
Instance Attribute Summary (collapse)
-
- (Object) expression
readonly
Returns the value of attribute expression.
-
- (Object) joins
readonly
Returns the value of attribute joins.
-
- (Object) table
readonly
Returns the value of attribute table.
Instance Method Summary (collapse)
- - (Object) aggregate=(val)
- - (Boolean) aggregate?
-
- (FieldFunction) initialize(expression, table, joins)
constructor
A new instance of FieldFunction.
- - (Object) to_s
Constructor Details
- (FieldFunction) initialize(expression, table, joins)
A new instance of FieldFunction
286 287 288 289 290 |
# File 'lib/spiderfw/model/storage/db/db_schema.rb', line 286 def initialize(expression, table, joins) @expression = expression @table = table @joins = joins end |
Instance Attribute Details
- (Object) expression (readonly)
Returns the value of attribute expression
285 286 287 |
# File 'lib/spiderfw/model/storage/db/db_schema.rb', line 285 def expression @expression end |
- (Object) joins (readonly)
Returns the value of attribute joins
285 286 287 |
# File 'lib/spiderfw/model/storage/db/db_schema.rb', line 285 def joins @joins end |
- (Object) table (readonly)
Returns the value of attribute table
285 286 287 |
# File 'lib/spiderfw/model/storage/db/db_schema.rb', line 285 def table @table end |
Instance Method Details
- (Object) aggregate=(val)
292 293 294 |
# File 'lib/spiderfw/model/storage/db/db_schema.rb', line 292 def aggregate=(val) @aggregate = val end |
- (Boolean) aggregate?
296 297 298 |
# File 'lib/spiderfw/model/storage/db/db_schema.rb', line 296 def aggregate? !!@aggregate end |
- (Object) to_s
300 301 302 |
# File 'lib/spiderfw/model/storage/db/db_schema.rb', line 300 def to_s @expression end |