class Daimyo::Client
Public Class Methods
new()
click to toggle source
# File lib/daimyo/client.rb, line 7 def initialize params = read_daimyo_yaml @client ||= BacklogKit::Client.new( space_id: params['space_id'], api_key: params['api_key'], top_level_domain: params['top_level_domain'] ) end
Public Instance Methods
export(wiki_id)
click to toggle source
# File lib/daimyo/client.rb, line 20 def export(wiki_id) @client.get_wiki(wiki_id) end
list(project_id)
click to toggle source
# File lib/daimyo/client.rb, line 16 def list(project_id) @client.get_wikis(project_id) end
publish(wiki_id, wiki_name, wiki_contents)
click to toggle source
# File lib/daimyo/client.rb, line 24 def publish(wiki_id, wiki_name, wiki_contents) params = {} params['name'] = wiki_name params['content'] = wiki_contents @client.update_wiki(wiki_id, params) end