class Assembla::Client::Spaces::WikiPages::Versions
Public Instance Methods
get(*args)
click to toggle source
@example api.spaces.wiki_pages.versions.get ‘project1’, ‘wiki-guid’, 369
# File lib/assembla_api/client/spaces/wiki_pages/versions.rb, line 6 def get(*args) arguments(args, required: [:space, :wiki_guid, :id]) get_request("/spaces/#{arguments.space}/wiki_pages/#{arguments.wiki_guid}/versions/#{arguments.id}", arguments.params) end
list(*args) { |el| ... }
click to toggle source
@example api.spaces.wiki_pages.versions.list ‘project1’, ‘wiki-guid’
# File lib/assembla_api/client/spaces/wiki_pages/versions.rb, line 13 def list(*args) arguments(args, required: [:space, :wiki_guid]) response = get_request("/spaces/#{arguments.space}/wiki_pages/#{arguments.wiki_guid}/versions", arguments.params) return response unless block_given? response.each { |el| yield el } end