Class: Spider::Model::Storage::Db::FixedExpression
- Inherits:
-
FieldExpression
- Object
- Field
- FieldExpression
- Spider::Model::Storage::Db::FixedExpression
- Defined in:
- lib/spiderfw/model/storage/db/db_schema.rb
Instance Attribute Summary
Attributes inherited from FieldExpression
Attributes inherited from Field
#attributes, #name, #table, #type
Instance Method Summary collapse
-
#initialize(table, name, type, fixed_value, attributes = {}) ⇒ FixedExpression
constructor
A new instance of FixedExpression.
Methods inherited from FieldExpression
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 |