Class: Mushikago::Mitsubachi::Project
- Inherits:
-
Object
- Object
- Mushikago::Mitsubachi::Project
- Defined in:
- lib/mushikago/mitsubachi/project.rb
Instance Attribute Summary collapse
-
#client ⇒ Object
readonly
Returns the value of attribute client.
-
#project_name ⇒ Object
readonly
Returns the value of attribute project_name.
Instance Method Summary collapse
- #delete(options = {}) ⇒ Object
- #discontinue(options = {}) ⇒ Object
- #info(options = {}) ⇒ Object
-
#initialize(client, project_name) ⇒ Project
constructor
A new instance of Project.
- #queues(options = {}) ⇒ Object
- #resources ⇒ Object
- #scripts ⇒ Object
- #to_s ⇒ Object
- #update(options = {}) ⇒ Object
Constructor Details
#initialize(client, project_name) ⇒ Project
Returns a new instance of Project.
8 9 10 11 |
# File 'lib/mushikago/mitsubachi/project.rb', line 8 def initialize client, project_name @client = client @project_name = project_name end |
Instance Attribute Details
#client ⇒ Object (readonly)
Returns the value of attribute client.
5 6 7 |
# File 'lib/mushikago/mitsubachi/project.rb', line 5 def client @client end |
#project_name ⇒ Object (readonly)
Returns the value of attribute project_name.
6 7 8 |
# File 'lib/mushikago/mitsubachi/project.rb', line 6 def project_name @project_name end |
Instance Method Details
#delete(options = {}) ⇒ Object
29 30 31 |
# File 'lib/mushikago/mitsubachi/project.rb', line 29 def delete ={} client.project_delete(project_name, ) end |
#discontinue(options = {}) ⇒ Object
37 38 39 |
# File 'lib/mushikago/mitsubachi/project.rb', line 37 def discontinue ={} client.project_discontinue(project_name, ) end |
#info(options = {}) ⇒ Object
25 26 27 |
# File 'lib/mushikago/mitsubachi/project.rb', line 25 def info ={} client.project_info(project_name, ) end |
#queues(options = {}) ⇒ Object
21 22 23 |
# File 'lib/mushikago/mitsubachi/project.rb', line 21 def queues ={} client.project_queues(project_name, )['count'] end |
#resources ⇒ Object
13 14 15 |
# File 'lib/mushikago/mitsubachi/project.rb', line 13 def resources Resources.new(client, project_name) end |
#scripts ⇒ Object
17 18 19 |
# File 'lib/mushikago/mitsubachi/project.rb', line 17 def scripts Scripts.new(client, project_name) end |
#to_s ⇒ Object
41 42 43 |
# File 'lib/mushikago/mitsubachi/project.rb', line 41 def to_s project_name end |
#update(options = {}) ⇒ Object
33 34 35 |
# File 'lib/mushikago/mitsubachi/project.rb', line 33 def update ={} client.project_update(project_name, ) end |