lib/rainforest/resources/environment.rb in rainforest-2.0.0 vs lib/rainforest/resources/environment.rb in rainforest-2.0.1
- old
+ new
@@ -41,22 +41,22 @@
def update(params={}, headers={})
res = client.environments.update(id, params, headers)
self.refresh_from(res.json, res.api_method, res.client)
end
- def save(params={}, headers={})
- params = ParamsBuilder.merge(api_attributes, params)
- res = client.environments.update(id, params, headers)
- self.refresh_from(res.json, res.api_method, res.client)
- end
-
def delete(params={}, headers={})
res = client.environments.delete(id, params, headers)
res
end
def runs()
EnvironmentRunsEndpoint.new(client, self)
+ end
+
+ def save(params={}, headers={})
+ params = ParamsBuilder.merge(api_attributes, params)
+ res = client.environments.update(id, params, headers)
+ self.refresh_from(res.json, res.api_method, res.client)
end
# Everything below here is used behind the scenes.
ApiResource.register_api_subclass(self, "environment")
@api_attributes = {