Class: Spider::Model::Storage::Db::FixedExpression

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

Instance Attribute Summary

Attributes inherited from FieldExpression

#expression

Attributes inherited from Field

#attributes, #name, #table, #type

Instance Method Summary collapse

Methods inherited from FieldExpression

#to_s

Methods inherited from Field

#==, #eql?, #hash, #inspect, #primary_key, #primary_key=, #to_s

Constructor Details

#initialize(table, name, type, fixed_value, attributes = {}) ⇒ FixedExpression

Returns a new instance of FixedExpression.



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

def initialize(table, name, type, fixed_value, attributes={})
    attributes[:expression] = fixed_value
    super(table, name, type, attributes)
end