Class: Tinybucket::Resource::Branches
- Defined in:
- lib/tinybucket/resource/branches.rb
Instance Method Summary collapse
-
#find(branch, options = {}) ⇒ Tinybucket::Model::Branch
Find the branch.
-
#initialize(repo, options) ⇒ Branches
constructor
A new instance of Branches.
Constructor Details
#initialize(repo, options) ⇒ Branches
Returns a new instance of Branches.
6 7 8 9 |
# File 'lib/tinybucket/resource/branches.rb', line 6 def initialize(repo, ) @repo = repo @args = [] end |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class Tinybucket::Resource::Base
Instance Method Details
#find(branch, options = {}) ⇒ Tinybucket::Model::Branch
Find the branch
16 17 18 19 20 |
# File 'lib/tinybucket/resource/branches.rb', line 16 def find(branch, = {}) branches_api.find(branch, ).tap do |m| inject_repo_keys(m, @repo.repo_keys) end end |