deltacloud-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mfoj...@apache.org
Subject [3/6] git commit: Client: Added #url method to all client objects
Date Thu, 04 Apr 2013 06:54:33 GMT
Client: Added #url method to all client objects


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

Branch: refs/heads/master
Commit: ff137e063d2f1f1b8dc446d1721b9bbbb954138a
Parents: 1cd40ce
Author: Michal Fojtik <mfojtik@redhat.com>
Authored: Wed Apr 3 16:07:52 2013 +0200
Committer: Michal fojtik <mfojtik@redhat.com>
Committed: Thu Apr 4 08:54:12 2013 +0200

----------------------------------------------------------------------
 client/lib/deltacloud/client/models/base.rb |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/deltacloud/blob/ff137e06/client/lib/deltacloud/client/models/base.rb
----------------------------------------------------------------------
diff --git a/client/lib/deltacloud/client/models/base.rb b/client/lib/deltacloud/client/models/base.rb
index dbf34f7..cfdab5d 100644
--- a/client/lib/deltacloud/client/models/base.rb
+++ b/client/lib/deltacloud/client/models/base.rb
@@ -27,6 +27,7 @@ module Deltacloud::Client
     # - obj_id -> The :id of Deltacloud API model (eg. instance ID)
     #
     attr_reader :obj_id
+    attr_reader :url
     attr_reader :name
     attr_reader :description
 
@@ -122,6 +123,7 @@ module Deltacloud::Client
         attrs = parse(body)
         attrs.merge!({
           :_id => body['id'],
+          :url => body['href'],
           :_client => client_ref,
           :name => body.text_at(:name),
           :description => body.text_at(:description)


Mime
View raw message