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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: eb15f1293b855e03fee76dd9ebdc2a753d82c84a
4
- data.tar.gz: 0e0ca66b25c535cca053e37b04c00b22070e46e5
3
+ metadata.gz: 23b4167bbf873afc7d296d61698a49b030db6f95
4
+ data.tar.gz: 862682f6f160d1289679db619cebd07a4fdd65f8
5
5
  SHA512:
6
- metadata.gz: 954535df029c63f03730f016eb9f6339e74f10c8aa9ddda578613d837855cd89a2a0a1f2ae6c376c646421b1950fc85a6128732f8b761efd30dbc04e2043ac9e
7
- data.tar.gz: 105a3cd6658bba282ddfb881e0a72bd8c984dbc7cd3f755cf5cbc0a8b644f6d52fac09164ca337aff0fd55da38633844a76759d651821d94435045857c1b61ca
6
+ metadata.gz: f1b726b40ba781cef65752029080f30fbdb1df17cedf8c1d6a11809d61d5bec04d312523eabe00fe09eb202d8195e72c3f43089614ee2ab4651e95563b16a279
7
+ data.tar.gz: ba8daf8ea98f990cffdab92ac583c525d5719e5a7efdc4fc50907d15b8794553beed35efcc72781dd62ab677aa8394b6f932b249a1f24c82d94e60d8e6718ea9
@@ -232,7 +232,8 @@ class AbiquoAPI
232
232
  @http_client.request(
233
233
  :expects => [204],
234
234
  :method => 'DELETE',
235
- :path => link.href
235
+ :path => link.href,
236
+ :query => options
236
237
  )
237
238
  nil
238
239
  end
@@ -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
 
@@ -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
 
@@ -1,3 +1,3 @@
1
1
  module AbiquoAPIClient
2
- VERSION = '0.0.2'
2
+ VERSION = '0.0.3'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: abiquo-api
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Marc Cirauqui