Class: Shale::Mapping::Delegates::Delegate Private

Inherits:
Object
  • Object
show all
Defined in:
lib/shale/mapping/delegates.rb

Overview

This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.

Class representing individual delegation

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(receiver_attribute, setter, value) ⇒ Delegate

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Initialize instance

Parameters:



41
42
43
44
45
# File 'lib/shale/mapping/delegates.rb', line 41

def initialize(receiver_attribute, setter, value)
  @receiver_attribute = receiver_attribute
  @setter = setter
  @value = value
end

Instance Attribute Details

#receiver_attributeShale::Attribute (readonly)

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Return receiver_attribute

Returns:



18
19
20
# File 'lib/shale/mapping/delegates.rb', line 18

def receiver_attribute
  @receiver_attribute
end

#setterString (readonly)

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Return attribute setter on a delegate

Returns:

  • (String)


25
26
27
# File 'lib/shale/mapping/delegates.rb', line 25

def setter
  @setter
end

#valueany (readonly)

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Return value to set on a delegate

Returns:

  • (any)


32
33
34
# File 'lib/shale/mapping/delegates.rb', line 32

def value
  @value
end