You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@qpid.apache.org by ac...@apache.org on 2018/06/13 12:52:56 UTC

[5/6] qpid-proton git commit: NO-JIRA: [ruby] Add "message.to" alias for "message.address"

NO-JIRA: [ruby] Add "message.to" alias for "message.address"


Project: http://git-wip-us.apache.org/repos/asf/qpid-proton/repo
Commit: http://git-wip-us.apache.org/repos/asf/qpid-proton/commit/c3f772ae
Tree: http://git-wip-us.apache.org/repos/asf/qpid-proton/tree/c3f772ae
Diff: http://git-wip-us.apache.org/repos/asf/qpid-proton/diff/c3f772ae

Branch: refs/heads/master
Commit: c3f772ae6a3392d4ce54a34e9b20c3dc235daae2
Parents: 863825c
Author: Alan Conway <ac...@redhat.com>
Authored: Thu Jun 7 16:09:31 2018 -0400
Committer: Alan Conway <ac...@redhat.com>
Committed: Wed Jun 13 08:50:05 2018 -0400

----------------------------------------------------------------------
 ruby/lib/core/message.rb | 17 +++++++----------
 1 file changed, 7 insertions(+), 10 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/qpid-proton/blob/c3f772ae/ruby/lib/core/message.rb
----------------------------------------------------------------------
diff --git a/ruby/lib/core/message.rb b/ruby/lib/core/message.rb
index 0256387..53244b9 100644
--- a/ruby/lib/core/message.rb
+++ b/ruby/lib/core/message.rb
@@ -279,22 +279,19 @@ module Qpid::Proton
       Cproton.pn_message_get_user_id(@impl)
     end
 
-    # Sets the destination address.
-    #
-    # ==== Options
-    #
-    # * address - the address
-    #
-    def address=(address)
+    # @param address[String] set the destination address
+    def to=(address)
       Cproton.pn_message_set_address(@impl, address)
     end
+    alias address= to=
 
-    # Returns the destination address.
-    #
-    def address
+    # @return [String] get the destination address.
+    def to
       Cproton.pn_message_get_address(@impl)
     end
 
+    alias address to
+
     # Sets the subject.
     #
     # ==== Options


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@qpid.apache.org
For additional commands, e-mail: commits-help@qpid.apache.org