Module: SmoothOperator::AttributeAssignment::ClassMethods

Defined in:
lib/smooth_operator/attribute_assignment.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#unknown_hash_classObject



72
73
74
# File 'lib/smooth_operator/attribute_assignment.rb', line 72

def unknown_hash_class
  Helpers.get_instance_variable(self, :unknown_hash_class, ::OpenStruct)
end

Instance Method Details

#attributes_black_listObject



80
81
82
# File 'lib/smooth_operator/attribute_assignment.rb', line 80

def attributes_black_list
  Helpers.get_instance_variable(self, :attributes_black_list, Set.new)
end

#attributes_black_list_add(*getters) ⇒ Object



88
89
90
# File 'lib/smooth_operator/attribute_assignment.rb', line 88

def attributes_black_list_add(*getters)
  attributes_black_list.merge getters.map(&:to_s)
end

#attributes_white_listObject



76
77
78
# File 'lib/smooth_operator/attribute_assignment.rb', line 76

def attributes_white_list
  Helpers.get_instance_variable(self, :attributes_white_list, Set.new)
end

#attributes_white_list_add(*getters) ⇒ Object



84
85
86
# File 'lib/smooth_operator/attribute_assignment.rb', line 84

def attributes_white_list_add(*getters)
  attributes_white_list.merge getters.map(&:to_s)
end