module IssueExporting
Copyright © 2015 Scott Williams
Copyright © 2015 Scott Williams
Constants
- VERSION
Public Class Methods
api_url()
click to toggle source
# File lib/issue_exporter/github.rb, line 2 def self.api_url "https://api.github.com/repos/%s/%s/issues?access_token=%s" end
make_uri(owner, repo, token)
click to toggle source
# File lib/issue_exporter/github.rb, line 12 def self.make_uri(owner, repo, token) URI(IssueExporting.make_url(owner, repo, token)) end
make_url(owner, repo, token)
click to toggle source
# File lib/issue_exporter/github.rb, line 6 def self.make_url(owner, repo, token) url_format = IssueExporting.api_url root_url = url_format % [owner, repo, token] return root_url end
turn_options_into_querystring(options)
click to toggle source
# File lib/issue_exporter/github.rb, line 16 def self.turn_options_into_querystring(options) querystring = '' options.each do |k, v| escaped_k, escaped_v = URI::encode(k), URI::encode(v) querystring += "#{escaped_k}=#{escaped_v}&" end querystring.chop end