Method: AbstractObject#initialize
- Defined in:
- lib/abstract_object.rb
#initialize(options = {}) ⇒ AbstractObject
Returns a new instance of AbstractObject.
9 10 11 12 |
# File 'lib/abstract_object.rb', line 9 def initialize( = {}) raise "Definitions can not be empty" if self.class.definitions.empty? @attributes = rename filter .kind_of?(AbstractObject) ? .to_hash : end |