Class: Linkage::Configuration::DSL::FieldWrapper

Inherits:
DataWrapper
  • Object
show all
Defined in:
lib/linkage/configuration.rb

Instance Attribute Summary collapse

Attributes inherited from DataWrapper

#meta_object

Instance Method Summary collapse

Methods inherited from DataWrapper

#compare_with, #method_missing

Constructor Details

#initialize(dsl, side, dataset, name) ⇒ FieldWrapper

Returns a new instance of FieldWrapper.



131
132
133
134
# File 'lib/linkage/configuration.rb', line 131

def initialize(dsl, side, dataset, name)
  @dsl = dsl
  @meta_object = MetaObject.new(dataset.field_set[name], side)
end

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class Linkage::Configuration::DSL::DataWrapper

Instance Attribute Details

#nameObject (readonly)

Returns the value of attribute name.



129
130
131
# File 'lib/linkage/configuration.rb', line 129

def name
  @name
end