Class: Lafcadio::MoneyField

Inherits:
DecimalField show all
Defined in:
lib/lafcadio/objectField/MoneyField.rb

Overview

:nodoc:

Instance Attribute Summary

Attributes inherited from DecimalField

#precision

Attributes inherited from ObjectField

#dbFieldName, #default, #defaultFieldName, #hideDisplay, #hideLabel, #name, #notNull, #notUniqueMsg, #objectType, #unique, #writeOnce

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from DecimalField

instantiationParameters, #processBeforeVerify, #valueFromSQL, valueType

Methods inherited from ObjectField

#<=>, #bind_write?, #dbWillAutomaticallyWrite, #db_table_and_field_name, #englishName, #firstTime, instantiateFromXml, instantiationParameters, #nameForSQL, #nullErrorMsg, #prevValue, #processBeforeVerify, #valueForSQL, #valueFromSQL, valueType, #verify, #verifyUniqueness

Constructor Details

#initialize(objectType, name, englishName = nil) ⇒ MoneyField

Returns a new instance of MoneyField.



9
10
11
# File 'lib/lafcadio/objectField/MoneyField.rb', line 9

def initialize(objectType, name, englishName = nil)
	super(objectType, name, 2, englishName)
end

Class Method Details

.instantiateWithParameters(domainClass, parameters) ⇒ Object



5
6
7
# File 'lib/lafcadio/objectField/MoneyField.rb', line 5

def MoneyField.instantiateWithParameters( domainClass, parameters )
	self.new( domainClass, parameters['name'], parameters['englishName'] )
end