Class: Safrano::AttributeTypeMapping
- Inherits:
-
TypeMapping
- Object
- TypeMapping
- Safrano::AttributeTypeMapping
- Defined in:
- lib/safrano/type_mapping.rb
Overview
Model attribute (column) specific mapping
Defined Under Namespace
Classes: Builder
Instance Attribute Summary collapse
-
#attr_name ⇒ Object
readonly
Returns the value of attribute attr_name.
Attributes inherited from TypeMapping
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(builder) ⇒ AttributeTypeMapping
constructor
A new instance of AttributeTypeMapping.
Constructor Details
#initialize(builder) ⇒ AttributeTypeMapping
Returns a new instance of AttributeTypeMapping.
20 21 22 23 |
# File 'lib/safrano/type_mapping.rb', line 20 def initialize(builder) @edm_type = builder.xedm_type @castfunc = builder.castfunc end |
Instance Attribute Details
#attr_name ⇒ Object (readonly)
Returns the value of attribute attr_name.
18 19 20 |
# File 'lib/safrano/type_mapping.rb', line 18 def attr_name @attr_name end |