lib/qismo/model.rb in qismo-0.10.0 vs lib/qismo/model.rb in qismo-0.11.0

- old
+ new

@@ -4,12 +4,12 @@ # Class to handle http response body # class SingleObject # Initiate data object # - # @param opt [Hash] - def initialize(opt = {}) - opt.each do |key, value| + # @param options [Hash] + def initialize(options = {}) + options.each do |key, value| value = if value.is_a?(Array) CollectionObject.new(handle_array(value)) elsif value.is_a?(Hash) self.class.new(value) elsif value.is_a?(TrueClass) || value.is_a?(FalseClass)