Class: Mushikago::Mitsubachi::Project

Inherits:
Object
  • Object
show all
Defined in:
lib/mushikago/mitsubachi/project.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#clientObject (readonly)

Returns the value of attribute client.



5
6
7
# File 'lib/mushikago/mitsubachi/project.rb', line 5

def client
  @client
end

#project_nameObject (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 options={}
  client.project_delete(project_name, options)
end

#discontinue(options = {}) ⇒ Object



37
38
39
# File 'lib/mushikago/mitsubachi/project.rb', line 37

def discontinue options={}
  client.project_discontinue(project_name, options)
end

#info(options = {}) ⇒ Object



25
26
27
# File 'lib/mushikago/mitsubachi/project.rb', line 25

def info options={}
  client.project_info(project_name, options)
end

#queues(options = {}) ⇒ Object



21
22
23
# File 'lib/mushikago/mitsubachi/project.rb', line 21

def queues options={}
  client.project_queues(project_name, options)['count']
end

#resourcesObject



13
14
15
# File 'lib/mushikago/mitsubachi/project.rb', line 13

def resources
  Resources.new(client, project_name)
end

#scriptsObject



17
18
19
# File 'lib/mushikago/mitsubachi/project.rb', line 17

def scripts
  Scripts.new(client, project_name)
end

#to_sObject



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 options={}
  client.project_update(project_name, options)
end