Skip to content

HowToUse

hirakiuc edited this page Aug 31, 2014 · 9 revisions

Entry Point

bucket = Tinybucket.new do |config|
  config.oauth_token  = 'Your OAuth Token'
  config.oauth_secret = 'Your OAuth Secret'
end

Repository

# get repository model.
repo = bucket.repo('owner', 'slug')

# just call `load` method if you need more attributes
repo.load

xxx

create repository

Not Emplemented Yet...

destroy

Not Implemented Yet...

association methods

pull_requests

list = repo.pull_requests

# iterate all of pull requests of the repository.
list.each do |pull_request|
  p pull_request
end

pull_request

pull_request = repo.pull_request(pull_request_id)

Clone this wiki locally