Class: Safrano::AttributeTypeMapping::Builder
- Inherits:
-
Object
- Object
- Safrano::AttributeTypeMapping::Builder
- Defined in:
- lib/safrano/type_mapping.rb
Overview
wrapper to handle API
Instance Attribute Summary collapse
-
#attr_name ⇒ Object
readonly
Returns the value of attribute attr_name.
-
#castfunc ⇒ Object
readonly
Returns the value of attribute castfunc.
-
#xedm_type ⇒ Object
readonly
Returns the value of attribute xedm_type.
Instance Method Summary collapse
- #edm_type(input) ⇒ Object
-
#initialize(atnam) ⇒ Builder
constructor
A new instance of Builder.
- #type_mapping ⇒ Object
Constructor Details
#initialize(atnam) ⇒ Builder
Returns a new instance of Builder.
31 32 33 |
# File 'lib/safrano/type_mapping.rb', line 31 def initialize(atnam) @attr_name = atnam end |
Instance Attribute Details
#attr_name ⇒ Object (readonly)
Returns the value of attribute attr_name.
29 30 31 |
# File 'lib/safrano/type_mapping.rb', line 29 def attr_name @attr_name end |
#castfunc ⇒ Object (readonly)
Returns the value of attribute castfunc.
28 29 30 |
# File 'lib/safrano/type_mapping.rb', line 28 def castfunc @castfunc end |
#xedm_type ⇒ Object (readonly)
Returns the value of attribute xedm_type.
27 28 29 |
# File 'lib/safrano/type_mapping.rb', line 27 def xedm_type @xedm_type end |
Instance Method Details
#edm_type(input) ⇒ Object
35 36 37 |
# File 'lib/safrano/type_mapping.rb', line 35 def edm_type(input) @xedm_type = input end |
#type_mapping ⇒ Object
39 40 41 |
# File 'lib/safrano/type_mapping.rb', line 39 def type_mapping AttributeTypeMapping.new(self) end |