Class: BaseMashup::Result
- Inherits:
-
Object
- Object
- BaseMashup::Result
- Defined in:
- lib/basemashup/result.rb
Instance Method Summary collapse
-
#initialize(data) ⇒ Result
constructor
A new instance of Result.
Constructor Details
#initialize(data) ⇒ Result
Returns a new instance of Result.
5 6 7 8 9 10 11 |
# File 'lib/basemashup/result.rb', line 5 def initialize(data) if data.kind_of?(Hash) data.each do |key, value| set_att(key, make_result(value)) end end end |