Class: Safrano::AttributeTypeMapping::Builder

Inherits:
Object
  • Object
show all
Defined in:
lib/safrano/type_mapping.rb

Overview

wrapper to handle API

Instance Attribute Summary collapse

Instance Method Summary collapse

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_nameObject (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

#castfuncObject (readonly)

Returns the value of attribute castfunc.



28
29
30
# File 'lib/safrano/type_mapping.rb', line 28

def castfunc
  @castfunc
end

#xedm_typeObject (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_mappingObject



39
40
41
# File 'lib/safrano/type_mapping.rb', line 39

def type_mapping
  AttributeTypeMapping.new(self)
end