class Tinybucket::Model::Branch
Branch Resource
@!attribute [rw] links
@return [Hash]
@!attribute [rw] type
@return [String]
@!attribute [rw] name
@return [String]
@!attribute [rw] repository
@return [Hash]
@!attribute [rw] target
@return [Hash]
Public Instance Methods
commits(options = {})
click to toggle source
Returns the commits available for the specific branch
@param options [Hash] @return [Tinybucket::Resource::Commits]
# File lib/tinybucket/model/branch.rb, line 29 def commits(options = {}) commits_resource.branch(name, options) end
Private Instance Methods
branches_api()
click to toggle source
# File lib/tinybucket/model/branch.rb, line 39 def branches_api create_api('Branches', repo_keys) end
commits_resource(options = {})
click to toggle source
# File lib/tinybucket/model/branch.rb, line 35 def commits_resource(options = {}) Tinybucket::Resource::Commits.new(self, options) end
load_model()
click to toggle source
# File lib/tinybucket/model/branch.rb, line 43 def load_model branches_api.find(name, {}) end