odesk-api 0.2.5 → 0.2.6

Sign up to get free protection for your applications and to get access to all the features.
@@ -46,9 +46,19 @@ module Odesk
46
46
  $LOG.i "running " + __method__.to_s
47
47
  @client.get '/offers/v1/clients/offers/' + reference
48
48
  end
49
+
50
+ # Get specific offer
51
+ #
52
+ # Arguments:
53
+ # reference: (String)
54
+ # params: (Hash)
55
+ def actions(reference, params)
56
+ $LOG.i "running " + __method__.to_s
57
+ @client.post '/offers/v1/clients/actions/' + reference, params
58
+ end
49
59
  end
50
60
  end
51
61
  end
52
62
  end
53
63
  end
54
- end
64
+ end
@@ -13,6 +13,6 @@
13
13
 
14
14
  module Odesk # :nodoc:
15
15
  module Api
16
- VERSION = "0.2.5"
16
+ VERSION = "0.2.6"
17
17
  end
18
18
  end
@@ -18,4 +18,9 @@ class HrFreelancersOffersTest < Test::Unit::TestCase
18
18
  api = Odesk::Api::Routers::Hr::Freelancers::Offers.new(get_client_mock)
19
19
  assert api.get_specific('12')
20
20
  end
21
- end
21
+
22
+ def test_actions
23
+ api = Odesk::Api::Routers::Hr::Freelancers::Offers.new(get_client_mock)
24
+ assert api.actions('12', {})
25
+ end
26
+ end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: odesk-api
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.5
4
+ version: 0.2.6
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2015-02-12 00:00:00.000000000 Z
12
+ date: 2015-03-05 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: oauth