class GitSnatch::Request
Public Class Methods
new(url)
click to toggle source
# File lib/git_snatch/request.rb, line 5 def initialize(url) @url = url end
Public Instance Methods
body()
click to toggle source
# File lib/git_snatch/request.rb, line 9 def body get.body_str end
Private Instance Methods
curl()
click to toggle source
# File lib/git_snatch/request.rb, line 19 def curl @curl ||= Curler.new(easy).build end
easy()
click to toggle source
# File lib/git_snatch/request.rb, line 23 def easy Curl::Easy.new(@url) end
get()
click to toggle source
# File lib/git_snatch/request.rb, line 15 def get curl.tap { |c| c.perform } end