Class: Elance::Workroom

Inherits:
Base
  • Object
show all
Defined in:
lib/elance/workroom.rb

Instance Method Summary collapse

Methods inherited from Base

#initialize, #method_missing

Constructor Details

This class inherits a constructor from Elance::Base

Dynamic Method Handling

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

Instance Method Details

#contractors(bid_id) {|response| ... } ⇒ Object

GET /workroom/bid-id/contractors

Yields:

  • (response)


22
23
24
25
26
# File 'lib/elance/workroom.rb', line 22

def contractors(bid_id, &block)
  response = self.class.get "/workroom/#{bid_id}/contractors", options
  yield(response) if block_given?
  response
end

#find(bid_id) {|response| ... } ⇒ Object

GET /workroom/bid-id

Yields:

  • (response)


8
9
10
11
12
# File 'lib/elance/workroom.rb', line 8

def find(bid_id, &block)
  response = self.class.get "/workroom/#{bid_id}", options
  yield(response) if block_given?
  response
end

#inbox(bid_id, *params) {|response| ... } ⇒ Object

GET /workroom/bid-id/inbox

Yields:

  • (response)


29
30
31
32
33
34
35
# File 'lib/elance/workroom.rb', line 29

def inbox(bid_id, *params, &block)
  options = {:query => {}}
  options[:query] = params[0] if params.length > 0    
  response = self.class.get "/workroom/#{bid_id}/inbox", options
  yield(response) if block_given?
  response
end

#messages(bid_id) {|response| ... } ⇒ Object

GET/POST /workroom/bid-id/messages

Yields:

  • (response)


38
39
40
41
42
# File 'lib/elance/workroom.rb', line 38

def messages(bid_id, &block)
  response = self.class.get "/workroom/#{bid_id}/messages", options
  yield(response) if block_given?
  response
end

#proposal(bid_id) {|response| ... } ⇒ Object

GET /workroom/bid-id/proposal

Yields:

  • (response)


45
46
47
48
49
# File 'lib/elance/workroom.rb', line 45

def proposal(bid_id, &block)
  response = self.class.get "/workroom/#{bid_id}/proposal", options
  yield(response) if block_given?
  response
end

#proposals(bid_id) {|response| ... } ⇒ Object

GET /workroom/bid-id/actions

Yields:

  • (response)


15
16
17
18
19
# File 'lib/elance/workroom.rb', line 15

def proposals(bid_id, &block)
  response = self.class.get "/workroom/#{bid_id}/actions", options
  yield(response) if block_given?
  response
end

#status_reports(bid_id) {|response| ... } ⇒ Object

GET /workroom/bid-id/statusreports

Yields:

  • (response)


52
53
54
55
56
# File 'lib/elance/workroom.rb', line 52

def status_reports(bid_id, &block)
  response = self.class.get "/workroom/#{bid_id}/statusReports", options
  yield(response) if block_given?
  response
end

#timesheets(bid_id) {|response| ... } ⇒ Object

GET /workroom/bid-id/timesheets

Yields:

  • (response)


59
60
61
62
63
# File 'lib/elance/workroom.rb', line 59

def timesheets(bid_id, &block)
  response = self.class.get "/workroom/#{bid_id}/timesheets", options
  yield(response) if block_given?
  response
end

#users(bid_id) {|response| ... } ⇒ Object

GET /workroom/bid-id/users

Yields:

  • (response)


66
67
68
69
70
# File 'lib/elance/workroom.rb', line 66

def users(bid_id, &block)
  response = self.class.get "/workroom/#{bid_id}/users", options
  yield(response) if block_given?
  response
end

#workview(bid_id, user_id) {|response| ... } ⇒ Object

GET /workroom/bid-id/workview/user-id

Yields:

  • (response)


73
74
75
76
77
# File 'lib/elance/workroom.rb', line 73

def workview(bid_id, user_id, &block)
  response = self.class.get "/workroom/#{bid_id}/workview/#{user_id}", options
  yield(response) if block_given?
  response
end