lib/oehclient/interaction/optimization.rb in oeh-client-0.1.0 vs lib/oehclient/interaction/optimization.rb in oeh-client-0.1.1

- old
+ new

@@ -30,20 +30,21 @@ optimization_instance.path = properties[OPT_RESPONSE_PATH] if (properties.has_key?(OPT_RESPONSE_PATH)) optimization_instance.response_id = properties[OPT_RESPONSE_ID] if (properties.has_key?(OPT_RESPONSE_ID)) optimization_instance.mime_type = properties[OPT_RESPONSE_MIME_TYPE] if (properties.has_key?(OPT_RESPONSE_ID)) optimization_instance.directives = properties[OPT_RESPONSE_DIRECTIVES] if (properties.has_key?(OPT_RESPONSE_DIRECTIVES)) + #puts "Response ID is #{Base64.decode64(optimization_instance.response_id)}" + #return the new instance of the optimzation class optimization_instance end # ---- Instance Methods # TODO: Need to create a series of methods that properly decodes the object based on Mime Type # decodes the Base64 encoded data and returns it raw form def decode_data() - CGI.unescapeHTML(Base64.decode64(@data.to_json)) end \ No newline at end of file