Class: Tinybucket::Resource::Issues

Inherits:
Base
  • Object
show all
Defined in:
lib/tinybucket/resource/issues.rb

Instance Method Summary collapse

Constructor Details

#initialize(repo, options) ⇒ Issues

Returns a new instance of Issues.



6
7
8
9
# File 'lib/tinybucket/resource/issues.rb', line 6

def initialize(repo, options)
  @repo = repo
  @args = [options]
end

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class Tinybucket::Resource::Base

Instance Method Details

#find(issue, options = {}) ⇒ Tinybucket::Model::Issue

Find the issue

Parameters:

  • issue (String)
  • options (Hash) (defaults to: {})

Returns:



19
20
21
22
23
# File 'lib/tinybucket/resource/issues.rb', line 19

def find(issue, options = {})
  issues_api.find(issue, options).tap do |m|
    inject_repo_keys(m, @repo.repo_keys)
  end
end

#repo_owner=(x) ⇒ Object



11
12
13
# File 'lib/tinybucket/resource/issues.rb', line 11

def repo_owner= x
  puts x
end