Module: HashAttributeAssignment
- Defined in:
- lib/hash_attribute_assignment.rb,
lib/hash_attribute_assignment/version.rb
Defined Under Namespace
Modules: ClassMethods
Classes: HashAttributeAssignor, HashValidationError
Constant Summary
collapse
- VERSION =
'0.0.1'.freeze
Class Method Summary
collapse
Instance Method Summary
collapse
Class Method Details
.included(base) ⇒ Object
68
69
70
|
# File 'lib/hash_attribute_assignment.rb', line 68
def self.included(base)
base.extend ClassMethods
end
|
Instance Method Details
#initialize(hash = {}) ⇒ Object
72
73
74
|
# File 'lib/hash_attribute_assignment.rb', line 72
def initialize(hash = {})
HashAttributeAssignor.new(self, hash).assign
end
|