lib/cloudflare/kv/namespaces.rb in cloudflare-4.1.1 vs lib/cloudflare/kv/namespaces.rb in cloudflare-4.1.2
- old
+ new
@@ -30,11 +30,11 @@
def id
value[:id]
end
def keys
- Keys.new(@resource.with(path: 'keys'))
+ self.with(Keys, path: 'keys')
end
def read_value(name)
value_representation(name).value
end
@@ -53,10 +53,10 @@
end
private
def value_representation(name)
- Representation.new(@resource.with(path: "values/#{name}"))
+ self.with(Representation, path: "values/#{name}")
end
end
class Namespaces < Representation
include Paginate