nimbox_ruby 0.2.0 → 0.3.0

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: 9a8b98e2bd103932f264c2bda0ff1573a8985f0b
4
- data.tar.gz: 2180854c77ba9013c8941b39da69968c384dfa0c
3
+ metadata.gz: ebb942aead342f307f29686fee9177a478124bd4
4
+ data.tar.gz: 48eddfa7b134041bc1101767607a0bb4f96e4b88
5
5
  SHA512:
6
- metadata.gz: 0461b4a7e50536ff4523a6086c2d5801fbf1c10ecc9e4d376984543b9cf982524e707e80741f2e656d6f94ad1fb736437a7ada95ca91f5788f2c2a93d835a761
7
- data.tar.gz: 0e802a1624ec47f3b063d2f38a18fdd571e625a2cf17496ba952ba90b2947e6a6353db2df03652098812a1e9fc420aa15301b9d323fbdda1db84aa60e14b7148
6
+ metadata.gz: 8d15a74ec4a38dc74542dcd0be34012cc4dba0bf2ae8b6e8129b304d9e3b8932cf0536ca5a6747c55a17753edd489d69185824bd0cc3a378f6a41588f9b67d67
7
+ data.tar.gz: 1e1a954b09c143806236df18e2328f4bb03d7cfc22e5e298a7ec92f4a09233eda62e1ed5364701fe36b53fe200213357e2e8a78d513380849311ffcb3f4e30b4
data/README.md CHANGED
@@ -65,6 +65,13 @@ Retrieve a consultation.
65
65
  ```ruby
66
66
  client.consultations!('1')
67
67
  ```
68
+
69
+ Finish a consultation.
70
+
71
+ ```ruby
72
+ client.consultations.finish('1')
73
+ ```
74
+
68
75
  ## License
69
76
 
70
77
  The gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).
data/lib/nimbox/client.rb CHANGED
@@ -10,6 +10,9 @@ module Nimbox
10
10
 
11
11
  resource :people, class_name: Nimbox::Resources::People
12
12
  resource :consultations, class_name: Nimbox::Resources::Consultations
13
+ resource :consultation_diagnostics,
14
+ class_name: Nimbox::Resources::ConsultationDiagnostics
15
+ resource :diagnostics, class_name: Nimbox::Resources::Diagnostics
13
16
 
14
17
  def initialize(options={})
15
18
  options[:site] = options[:site]
@@ -0,0 +1,7 @@
1
+ module Nimbox
2
+ module Resources
3
+ class ConsultationDiagnostics < Rapidash::Base
4
+ url 'consultation_diagnostics'
5
+ end
6
+ end
7
+ end
@@ -6,6 +6,12 @@ module Nimbox
6
6
  @url = "consultations/#{id}/finish"
7
7
  call!
8
8
  end
9
+
10
+ def diagnostics(id)
11
+ options[:method] = :get
12
+ @url = "consultations/#{id}/consultation_diagnostics"
13
+ call!
14
+ end
9
15
  end
10
16
  end
11
17
  end
@@ -0,0 +1,6 @@
1
+ module Nimbox
2
+ module Resources
3
+ class Diagnostics < Rapidash::Base
4
+ end
5
+ end
6
+ end
@@ -1,3 +1,3 @@
1
1
  module Nimbox
2
- VERSION = "0.2.0"
2
+ VERSION = "0.3.0"
3
3
  end
data/lib/nimbox.rb CHANGED
@@ -2,6 +2,8 @@ require 'rapidash'
2
2
  require_relative 'nimbox/version'
3
3
  require_relative 'nimbox/resources/people'
4
4
  require_relative 'nimbox/resources/consultations'
5
+ require_relative 'nimbox/resources/diagnostics'
6
+ require_relative 'nimbox/resources/consultation_diagnostics'
5
7
  require_relative 'nimbox/client'
6
8
 
7
9
  module Nimbox
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: nimbox_ruby
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Amed Rodriguez
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2016-01-16 00:00:00.000000000 Z
11
+ date: 2016-01-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -126,7 +126,9 @@ files:
126
126
  - bin/setup
127
127
  - lib/nimbox.rb
128
128
  - lib/nimbox/client.rb
129
+ - lib/nimbox/resources/consultation_diagnostics.rb
129
130
  - lib/nimbox/resources/consultations.rb
131
+ - lib/nimbox/resources/diagnostics.rb
130
132
  - lib/nimbox/resources/people.rb
131
133
  - lib/nimbox/version.rb
132
134
  - nimbox_ruby.gemspec