def result(success, data = nil)
      PayDirt::Result.new(success: success, data: data)
    end
def result(success, data = nil)
      PayDirt::Result.new(success: success, data: data)
    end
Returns a result object conveying success or failure (+success+)
 and any +data+. See PayDirt::Result.

 @param [Boolean]
   success should the result be +#successful?+?

 @param [Object]
   data (nil) optional, an object containing information

 @public