Method: Elance::Project#payment

Defined in:
lib/elance/project.rb

#payment(*params) {|response| ... } ⇒ Object

POST /projects/payments

Yields:

  • (response)


17
18
19
20
21
22
23
# File 'lib/elance/project.rb', line 17

def payment(*params, &block)
  options = {:query => {}}
  options[:query] = params[0] if params.length > 0
  response = self.class.post '/projects/jobs', options
  yield(response) if block_given?
  response
end