lib/models/UEConnection.rb in ue-ruby-sdk-1.1.9 vs lib/models/UEConnection.rb in ue-ruby-sdk-1.1.12

- old
+ new

@@ -14,11 +14,11 @@ def user @user end - def refresh_connection() + def refresh_connection() end ## # Used for message parts # @access private @@ -54,11 +54,11 @@ params = message_options queryObject = {} #Formulate Receivers params[:receivers] = params[:receivers].map { |receiver| - if receiver[:name ] && receiver[:name].downcase == "me" + if receiver[:name ] && receiver[:name].downcase == "me" { name:"Me", address:"test.test", Connector: @name } @@ -83,11 +83,11 @@ data: params[:message][:body], }) end #Image Part - if params[:message].key?(:image) + if params[:message].key?(:image) queryObject[:parts].push({ id: UEConnection.generate_unique_id, contentType: default_content_type, type: "image_link", data: params[:message][:image] @@ -131,11 +131,11 @@ if params[:message][:subject] queryObject[:subject ]= params[:message][:subject]; end - $logger.info(queryObject); + # $logger.info(queryObject); return queryObject; end @@ -163,10 +163,10 @@ response = UERequest.fetch "message/send", { user: @user.user_key, pass: @user.user_secret, form:{ message: self.build_message_query(message_options) - } + } } response[:URIs] rescue [] end