callrail 0.2.5 → 0.2.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: b093b3983ed9f25bc5d81cd57099d4e2a7ab1157
4
- data.tar.gz: d82ee524203aca3ba4903e4c990bf428a176fb8e
3
+ metadata.gz: dbbaf506ead787ca52dc63840bb542d453d49a34
4
+ data.tar.gz: c612a2e8c8fb78bf487947a8a13736bd5bb407df
5
5
  SHA512:
6
- metadata.gz: 86619cd53fa3dde399f9231528a7108531da61241fab64c9a4abecc9a023a63e94d9d41b6f8fcb63158c777d00614fe3e9e7647fd85e70a3c05ff062ce90818b
7
- data.tar.gz: 471d5cc5002a41dc46a240dad085a8fc4853a5ffca73fd9b6d72fa4c5e692b66a38d227902c5cfb2d734dfbb2ba295e8a371b3af66ac935a4b62d12079b80f4e
6
+ metadata.gz: 81cad40eb9c1b41226ecfa9d89779a76ff9866ffbd41e4537b07f372b1d62187dd927122178f5ac6bce60f9341bc89a6451cbec46f83b13a9ff08ef67cfde441
7
+ data.tar.gz: 962ea32852ee2427319273b5a8b01de3aa7a905c039b34b61aa455ade32fa676df8a4a7be2fd0a0437e5072f3628ac48cd156c93573a5bb7985bc5dc377bd7ae
data/.gitignore CHANGED
@@ -11,4 +11,6 @@
11
11
  .rspec_status
12
12
 
13
13
  test.rb
14
- *.gem
14
+ *.gem
15
+
16
+ Gemfile.lock
data/README.md CHANGED
@@ -161,6 +161,11 @@ tracker_options[:sms_enabled] = true
161
161
  tracker_options[:whisper_message] = "This is a test number call"
162
162
  testcon.create_tracker(tracker_options)
163
163
  ```
164
+ ###### Update a Source Tracker
165
+ tracker_options = {}
166
+ tracker_options[:source] = {:type => "search", :search_engine => "all", :search_type => "paid"}
167
+ tracker_options[:tracker_id] = <tracker_id>
168
+ puts testcon.update_tracker(tracker_options)
164
169
 
165
170
  ###### Getting Integrations for a company
166
171
  ```
@@ -187,7 +187,7 @@ module Callrail
187
187
  end
188
188
 
189
189
  def update_tracker(opts={})
190
- opts[:path] = "/" + @account_id + "/trackers/" + opts[:tracker_id].to_s + ".json"
190
+ path = "/" + @account_id + "/trackers/" + opts[:tracker_id].to_s + ".json"
191
191
  params = set_params(opts)
192
192
  return parse_json(RestClient.put(@url+path, params, :Authorization => @auth))
193
193
  end
@@ -1,3 +1,3 @@
1
1
  module Callrail
2
- VERSION = "0.2.5"
2
+ VERSION = "0.2.6"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: callrail
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.5
4
+ version: 0.2.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Michael Hoskison