Class: Backframe::Service::Result::Base
- Inherits:
-
Object
- Object
- Backframe::Service::Result::Base
- Defined in:
- lib/backframe/service/result/base.rb
Instance Method Summary collapse
-
#initialize(*args) ⇒ Base
constructor
A new instance of Base.
Constructor Details
#initialize(*args) ⇒ Base
Returns a new instance of Base.
11 12 13 14 15 16 |
# File 'lib/backframe/service/result/base.rb', line 11 def initialize(*args) args[0].each do |key, val| self.class.send(:attr_accessor, key) self.instance_variable_set("@#{key}", val) end end |