-
Notifications
You must be signed in to change notification settings - Fork 36
HowToUse
hirakiuc edited this page Aug 31, 2014
·
9 revisions
bucket = Tinybucket.new do |config|
config.oauth_token = 'Your OAuth Token'
config.oauth_secret = 'Your OAuth Secret'
end
# get repository model.
repo = bucket.repo('owner', 'slug')
# just call `load` method if you need more attributes
repo.load
Not Emplemented Yet...
Not Implemented Yet...
list = repo.pull_requests
# iterate all of pull requests of the repository.
list.each do |pull_request|
p pull_request
end
pull_request = repo.pull_request(pull_request_id)