lib/kentaa/api/clients/sites.rb in kentaa-api-0.2.1 vs lib/kentaa/api/clients/sites.rb in kentaa-api-0.3.0
- old
+ new
@@ -2,12 +2,12 @@
module Kentaa
module Api
module Clients
class Sites < Base
- def current
- response = request.get("/sites/current")
- Kentaa::Api::Resources::Site.new(config, response)
+ def current(options = {})
+ site = Kentaa::Api::Resources::Site.new(config, options)
+ site.load
end
end
end
end
end