arbor_peakflow_ruby 1.0.2 → 1.0.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 9ed1ace38b51d09a0d6d0924f1187250c90f17fe
4
- data.tar.gz: cd053e621a4bbdf4297c52c4f65ebbe173185ad8
3
+ metadata.gz: 5eba0729f4909869481ad52f89856838ba5f79d0
4
+ data.tar.gz: 10ec036972ae0b704f1cbe35175f22a34b1887e5
5
5
  SHA512:
6
- metadata.gz: 53be512ee2b9279978f850453bf8a5dd57f83881616ea2c05b0d41640d7efb9f4b125a5b3b1a94667ab64fb374eaa806ad014df5a723d1a27f6884b212d7c35a
7
- data.tar.gz: 49f49b6410ca86fadefbe7d34cb885704120a4d7d3af5634161b098ab5d319f2878d7b5b60a46149f4fd75ac2571b3da0055fed6cfdc8190a519d21611003f78
6
+ metadata.gz: 6589c77962c097f16e7d8a7cadcf64ad8ec2745a663ad992643e67235adf227d748962fa400f63bc86c7b5fa8d70c4a004b5cae36a64297c05aa19e035719bd2
7
+ data.tar.gz: fbafcba959b0461f9957a10bffc9addd51812c5c0609c0275bda572659ddea1f147a289170009de20556dd6b5ad53ddc58e2d44295615523a4a2b5c9af1da3e5
@@ -20,7 +20,7 @@ module Arbor
20
20
  # ==== Example
21
21
  #
22
22
  # query = File.read('path/to/file.xml')
23
- # client.traffic query
23
+ # response = client.traffic query
24
24
  def traffic(query, graph = nil)
25
25
  response = @conn.get do |req|
26
26
  req.url 'arborws/traffic'
@@ -32,6 +32,17 @@ module Arbor
32
32
  response
33
33
  end
34
34
 
35
+ # The encode_xml_for_url function allows you to encode an XML file's
36
+ # content. This is used automatically when calling the traffic method.
37
+ #
38
+ # == Parameters:
39
+ # - file_contents: The XML content which should be encoded into a URL
40
+ # usable format.
41
+ #
42
+ # ==== Example
43
+ #
44
+ # file = File.read('path/to/file.xml')
45
+ # encoded_file_contents = client.encode_xml_for_url file
35
46
  def encode_xml_for_url(file_contents)
36
47
  encoded_file =
37
48
  URI.encode(
@@ -1,5 +1,5 @@
1
1
  module Arbor
2
2
  module Peakflow
3
- VERSION = '1.0.2'
3
+ VERSION = '1.0.3'
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: arbor_peakflow_ruby
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.2
4
+ version: 1.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kevin Kirsche