Class: Spider::Model::Storage::Db::FieldFunction

Inherits:
Object
  • Object
show all
Defined in:
lib/spiderfw/model/storage/db/db_schema.rb

Instance Attribute Summary (collapse)

Instance Method Summary (collapse)

Constructor Details

- (FieldFunction) initialize(expression, table, joins)

Returns 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?

Returns:

  • (Boolean)


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