Class: Elance::Workroom
Instance Method Summary collapse
-
#contractors(bid_id) {|response| ... } ⇒ Object
GET /workroom/bid-id/contractors.
-
#find(bid_id) {|response| ... } ⇒ Object
GET /workroom/bid-id.
-
#inbox(bid_id, *params) {|response| ... } ⇒ Object
GET /workroom/bid-id/inbox.
-
#messages(bid_id) {|response| ... } ⇒ Object
GET/POST /workroom/bid-id/messages.
-
#proposal(bid_id) {|response| ... } ⇒ Object
GET /workroom/bid-id/proposal.
-
#proposals(bid_id) {|response| ... } ⇒ Object
GET /workroom/bid-id/actions.
-
#status_reports(bid_id) {|response| ... } ⇒ Object
GET /workroom/bid-id/statusreports.
-
#timesheets(bid_id) {|response| ... } ⇒ Object
GET /workroom/bid-id/timesheets.
-
#users(bid_id) {|response| ... } ⇒ Object
GET /workroom/bid-id/users.
-
#workview(bid_id, user_id) {|response| ... } ⇒ Object
GET /workroom/bid-id/workview/user-id.
Methods inherited from Base
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
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", yield(response) if block_given? response end |
#find(bid_id) {|response| ... } ⇒ Object
GET /workroom/bid-id
8 9 10 11 12 |
# File 'lib/elance/workroom.rb', line 8 def find(bid_id, &block) response = self.class.get "/workroom/#{bid_id}", yield(response) if block_given? response end |
#inbox(bid_id, *params) {|response| ... } ⇒ Object
GET /workroom/bid-id/inbox
29 30 31 32 33 34 35 |
# File 'lib/elance/workroom.rb', line 29 def inbox(bid_id, *params, &block) = {:query => {}} [:query] = params[0] if params.length > 0 response = self.class.get "/workroom/#{bid_id}/inbox", yield(response) if block_given? response end |
#messages(bid_id) {|response| ... } ⇒ Object
GET/POST /workroom/bid-id/messages
38 39 40 41 42 |
# File 'lib/elance/workroom.rb', line 38 def (bid_id, &block) response = self.class.get "/workroom/#{bid_id}/messages", yield(response) if block_given? response end |
#proposal(bid_id) {|response| ... } ⇒ Object
GET /workroom/bid-id/proposal
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", yield(response) if block_given? response end |
#proposals(bid_id) {|response| ... } ⇒ Object
GET /workroom/bid-id/actions
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", yield(response) if block_given? response end |
#status_reports(bid_id) {|response| ... } ⇒ Object
GET /workroom/bid-id/statusreports
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", yield(response) if block_given? response end |
#timesheets(bid_id) {|response| ... } ⇒ Object
GET /workroom/bid-id/timesheets
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", yield(response) if block_given? response end |
#users(bid_id) {|response| ... } ⇒ Object
GET /workroom/bid-id/users
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", yield(response) if block_given? response end |
#workview(bid_id, user_id) {|response| ... } ⇒ Object
GET /workroom/bid-id/workview/user-id
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}", yield(response) if block_given? response end |