abiquo-api 0.0.2 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/abiquo-api.rb +2 -1
- data/lib/abiquo-api/link.rb +2 -2
- data/lib/abiquo-api/model.rb +5 -5
- data/lib/abiquo-api/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 23b4167bbf873afc7d296d61698a49b030db6f95
|
4
|
+
data.tar.gz: 862682f6f160d1289679db619cebd07a4fdd65f8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f1b726b40ba781cef65752029080f30fbdb1df17cedf8c1d6a11809d61d5bec04d312523eabe00fe09eb202d8195e72c3f43089614ee2ab4651e95563b16a279
|
7
|
+
data.tar.gz: ba8daf8ea98f990cffdab92ac583c525d5719e5a7efdc4fc50907d15b8794553beed35efcc72781dd62ab677aa8394b6f932b249a1f24c82d94e60d8e6718ea9
|
data/lib/abiquo-api.rb
CHANGED
data/lib/abiquo-api/link.rb
CHANGED
@@ -47,11 +47,11 @@ module AbiquoAPIClient
|
|
47
47
|
# If the :client attribute is not nil, will retrieve
|
48
48
|
# the resource that this link represents, or nil otherwise
|
49
49
|
#
|
50
|
-
def get
|
50
|
+
def get(options = {})
|
51
51
|
if @client.nil?
|
52
52
|
return nil
|
53
53
|
else
|
54
|
-
@client.get(self)
|
54
|
+
@client.get(self, options)
|
55
55
|
end
|
56
56
|
end
|
57
57
|
|
data/lib/abiquo-api/model.rb
CHANGED
@@ -135,8 +135,8 @@ module AbiquoAPIClient
|
|
135
135
|
#
|
136
136
|
# Returns a new instance representing the updated resource.
|
137
137
|
#
|
138
|
-
def update
|
139
|
-
@client.put(self.link(:edit), self)
|
138
|
+
def update(options = {})
|
139
|
+
@client.put(self.link(:edit), self, options)
|
140
140
|
end
|
141
141
|
|
142
142
|
##
|
@@ -145,8 +145,8 @@ module AbiquoAPIClient
|
|
145
145
|
#
|
146
146
|
# Returns nil on success.
|
147
147
|
#
|
148
|
-
def delete
|
149
|
-
@client.delete(self.link(:edit))
|
148
|
+
def delete(options = {})
|
149
|
+
@client.delete(self.link(:edit), options)
|
150
150
|
end
|
151
151
|
|
152
152
|
##
|
@@ -154,7 +154,7 @@ module AbiquoAPIClient
|
|
154
154
|
#
|
155
155
|
# Returns a new instance representing resource.
|
156
156
|
#
|
157
|
-
def refresh
|
157
|
+
def refresh(options = {})
|
158
158
|
self.link(:edit).get
|
159
159
|
end
|
160
160
|
|
data/lib/abiquo-api/version.rb
CHANGED