lib/scrivito/workspace.rb in scrivito_sdk-0.71.2 vs lib/scrivito/workspace.rb in scrivito_sdk-0.90.0.rc1
- old
+ new
@@ -46,10 +46,14 @@
result_json['results'].map do |raw_data|
Workspace.new(WorkspaceData.new(raw_data))
end
end
+ # @api public
+ # Returns the published workspace.
+ #
+ # @return [Scrivito::Workspace]
def self.published
find("published")
end
def self.published_with_fallback
@@ -250,9 +254,13 @@
else
@workspace_data
end
end
+ # @api public
+ # This method indicates whether the workspace is the published one.
+ #
+ # @return +true+ if the workspace is the published one
def published?
self.id == 'published'
end
def outdated?