lib/siteleaf/site.rb in siteleaf-2.2.0 vs lib/siteleaf/site.rb in siteleaf-2.2.1
- old
+ new
@@ -46,9 +46,14 @@
def preview
result = Client.post "#{entity_endpoint}/preview", {}
Job.new(id: result["job_id"]) if result
end
+ def users
+ result = Client.get "#{entity_endpoint}/users"
+ result.map { |r| User.new(r) } if result.is_a? Array
+ end
+
def full_url
"http://#{domain}"
end
def filename