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

#initialize(expression, table, joins) ⇒ 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

#expressionObject (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

#joinsObject (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

#tableObject (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

#aggregate=(val) ⇒ Object



292
293
294
# File 'lib/spiderfw/model/storage/db/db_schema.rb', line 292

def aggregate=(val)
    @aggregate = val
end

#aggregate?Boolean



296
297
298
# File 'lib/spiderfw/model/storage/db/db_schema.rb', line 296

def aggregate?
    !!@aggregate
end

#to_sObject



300
301
302
# File 'lib/spiderfw/model/storage/db/db_schema.rb', line 300

def to_s
    @expression
end