lib/odesk/api/routers/hr/contracts.rb in odesk-api-0.2.1 vs lib/odesk/api/routers/hr/contracts.rb in odesk-api-0.2.2

- old
+ new

@@ -26,10 +26,30 @@ def initialize(client) @client = client @client.epoint = ENTRY_POINT end + # Suspend Contract + # + # Arguments: + # reference: (String) + # params: (Hash) + def suspend_contract(reference, params) + $LOG.i "running " + __method__.to_s + @client.put '/hr/v2/contracts/' + reference + '/suspend', params + end + + # Restart Contract + # + # Arguments: + # reference: (String) + # params: (Hash) + def restart_contract(reference, params) + $LOG.i "running " + __method__.to_s + @client.put '/hr/v2/contracts/' + reference + '/restart', params + end + # End Contract # # Arguments: # reference: (String) # params: (Hash) @@ -39,6 +59,6 @@ end end end end end -end \ No newline at end of file +end