Class: GitSnatch::Grab

Inherits:
Object
  • Object
show all
Defined in:
lib/git_snatch/grab.rb

Instance Method Summary collapse

Constructor Details

#initialize(repo, sha, location) ⇒ Grab

Returns a new instance of Grab.



3
4
5
6
7
# File 'lib/git_snatch/grab.rb', line 3

def initialize(repo, sha, location)
  @repo = repo
  @sha = sha
  @location = location
end

Instance Method Details

#contentObject



9
10
11
# File 'lib/git_snatch/grab.rb', line 9

def content
  request.body
end

#requestObject



13
14
15
# File 'lib/git_snatch/grab.rb', line 13

def request
  Request.new(url)
end