Class: GitSnatch::Grab
- Inherits:
-
Object
- Object
- GitSnatch::Grab
- Defined in:
- lib/git_snatch/grab.rb
Instance Method Summary collapse
- #content ⇒ Object
-
#initialize(repo, sha, location) ⇒ Grab
constructor
A new instance of Grab.
- #request ⇒ Object
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
#content ⇒ Object
9 10 11 |
# File 'lib/git_snatch/grab.rb', line 9 def content request.body end |
#request ⇒ Object
13 14 15 |
# File 'lib/git_snatch/grab.rb', line 13 def request Request.new(url) end |