Module: Anima::Builder::Methods
- Defined in:
- lib/anima/builder.rb
Overview
Static instance methods for anima infected classes
Instance Method Summary collapse
-
#initialize(attributes) ⇒ undefined
Initialize an anima infected object.
-
#to_h ⇒ Hash
Return a hash representation of an anima infected object.
Instance Method Details
#initialize(attributes) ⇒ undefined
Initialize an anima infected object
18 19 20 |
# File 'lib/anima/builder.rb', line 18 def initialize(attributes) self.class.anima.initialize_instance(self, attributes) end |
#to_h ⇒ Hash
Return a hash representation of an anima infected object
27 28 29 |
# File 'lib/anima/builder.rb', line 27 def to_h self.class.anima.attributes_hash(self) end |