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

Returns a new instance of FieldFunction.



262
263
264
265
266
# File 'lib/spiderfw/model/storage/db/db_schema.rb', line 262

def initialize(expression, table, joins)
    @expression = expression
    @table = table
    @joins = joins
end

Instance Attribute Details

#expressionObject (readonly)

Returns the value of attribute expression.



261
262
263
# File 'lib/spiderfw/model/storage/db/db_schema.rb', line 261

def expression
  @expression
end

#joinsObject (readonly)

Returns the value of attribute joins.



261
262
263
# File 'lib/spiderfw/model/storage/db/db_schema.rb', line 261

def joins
  @joins
end

#tableObject (readonly)

Returns the value of attribute table.



261
262
263
# File 'lib/spiderfw/model/storage/db/db_schema.rb', line 261

def table
  @table
end

Instance Method Details

#to_sObject



268
269
270
# File 'lib/spiderfw/model/storage/db/db_schema.rb', line 268

def to_s
    @expression
end