lib/infoblox/resource.rb in infoblox-0.0.2 vs lib/infoblox/resource.rb in infoblox-0.0.3
- old
+ new
@@ -54,22 +54,26 @@
def delete
connection.delete(resource_uri).status == 200
end
+ def get
+ connection.get(resource_uri)
+ end
+
def resource_uri
self._ref.nil? ? self.class.resource_uri : (BASE_PATH + self._ref)
end
- private
-
def remote_attribute_hash
{}.tap do |hsh|
self.class.remote_attrs.each do |k|
hsh[k] = self.send(k)
end
end
end
+
+ private
def connection
self.class.connection
end
\ No newline at end of file