Class: Mongo::Jira::Main
- Inherits:
-
Object
show all
- Defined in:
- lib/mongo/jira.rb
Instance Attribute Summary collapse
Instance Method Summary
collapse
Constructor Details
#initialize(file) ⇒ Main
Returns a new instance of Main.
13
14
15
|
# File 'lib/mongo/jira.rb', line 13
def initialize(file)
@filename= file
end
|
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
#method_missing(m, *args, &block) ⇒ Object
47
48
49
|
# File 'lib/mongo/jira.rb', line 47
def method_missing(m, *args, &block)
jira.send(m, *args, &block)
end
|
Instance Attribute Details
#config ⇒ Object
Returns the value of attribute config.
11
12
13
|
# File 'lib/mongo/jira.rb', line 11
def config
@config
end
|
#filename ⇒ Object
Returns the value of attribute filename.
11
12
13
|
# File 'lib/mongo/jira.rb', line 11
def filename
@filename
end
|
#jira ⇒ Object
Returns the value of attribute jira.
11
12
13
|
# File 'lib/mongo/jira.rb', line 11
def jira
@jira
end
|
Instance Method Details
#find(tid) ⇒ Object
17
18
19
20
21
22
|
# File 'lib/mongo/jira.rb', line 17
def find(tid)
jira.Issue.find(tid)
rescue JIRA::HTTPError => e
raise e if e.code == '401' || e.code == '403'
nil
end
|
#jql(qry) ⇒ Object
24
25
26
|
# File 'lib/mongo/jira.rb', line 24
def jql(qry)
JIRA::Resource::Issue.jql(jira,qry)
end
|
#password=(pw) ⇒ Object
39
40
41
|
# File 'lib/mongo/jira.rb', line 39
def password=(pw)
config.password=pw
end
|
#password? ⇒ Boolean
36
37
38
|
# File 'lib/mongo/jira.rb', line 36
def password?
config.password?
end
|
#projects ⇒ Object
28
29
30
|
# File 'lib/mongo/jira.rb', line 28
def projects
jira.Project.all
end
|