ruby-bandwidth-iris 1.0.0 → 1.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +4 -1
- data/lib/bandwidth-iris/disc_number.rb +1 -1
- data/lib/bandwidth-iris/version.rb +1 -1
- data/lib/ruby-bandwidth-iris.rb +1 -0
- data/spec/bandwidth-iris/disc_number_spec.rb +25 -0
- metadata +4 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3c1eb4bde307b7c240acec4154603afe59d5cc22
|
4
|
+
data.tar.gz: e6b92efda744bb9302b9ffd24fe2036f4b7f7ece
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 25fd084cdb9321a9831c04e786b08fc25c8bc1cbb4c375d7ddbb13ffd8c7fab5549161829cbb245036668dd4cb5bceee6e8ef784b57236235a74f28e87b2b2bb
|
7
|
+
data.tar.gz: c0f4efb3ba404436cfa7387c227e632f0225b15251f2b41617f6a8b6807e4d0fb75044867ac79178809d1fd32e1f761919254b6e9bf65809fb95e04c86b4edf5
|
data/README.md
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
# ruby-bandwidth-iris
|
2
2
|
|
3
|
-
[![Build](https://travis-ci.org/bandwidthcom/ruby-bandwidth-
|
3
|
+
[![Build Status](https://travis-ci.org/bandwidthcom/ruby-bandwidth-iris.svg)](https://travis-ci.org/bandwidthcom/ruby-bandwidth-iris)
|
4
4
|
|
5
5
|
Ruby Client library for IRIS / BBS API
|
6
6
|
|
@@ -557,14 +557,17 @@ tn.get_rate_center()
|
|
557
557
|
```
|
558
558
|
|
559
559
|
## TN Reservation
|
560
|
+
|
560
561
|
### Create TN Reservation
|
561
562
|
```ruby
|
562
563
|
Bandwidth::TnReservation.create({:reserved_tn => "9195551212"})
|
563
564
|
```
|
565
|
+
|
564
566
|
### Get TN Reservation
|
565
567
|
```ruby
|
566
568
|
tn = Bandwidth::TnReservation.get(id)
|
567
569
|
```
|
570
|
+
|
568
571
|
### Delete TN Reservation
|
569
572
|
```ruby
|
570
573
|
tn.delete()
|
data/lib/ruby-bandwidth-iris.rb
CHANGED
@@ -10,6 +10,7 @@ require 'bandwidth-iris/city'
|
|
10
10
|
require 'bandwidth-iris/covered_rate_center'
|
11
11
|
require 'bandwidth-iris/disconnect'
|
12
12
|
require 'bandwidth-iris/dlda'
|
13
|
+
require 'bandwidth-iris/disc_number'
|
13
14
|
require 'bandwidth-iris/import_to_account'
|
14
15
|
require 'bandwidth-iris/in_service_number'
|
15
16
|
require 'bandwidth-iris/lidb'
|
@@ -0,0 +1,25 @@
|
|
1
|
+
describe BandwidthIris::DiscNumber do
|
2
|
+
client = nil
|
3
|
+
|
4
|
+
before :each do
|
5
|
+
client = Helper.get_client()
|
6
|
+
end
|
7
|
+
|
8
|
+
after :each do
|
9
|
+
client.stubs.verify_stubbed_calls()
|
10
|
+
end
|
11
|
+
|
12
|
+
describe '#list' do
|
13
|
+
it 'should return numbers' do
|
14
|
+
client.stubs.get('/v1.0/accounts/accountId/discnumbers') {|env| [200, {}, '<Response><TelephoneNumbers></TelephoneNumbers></Response>']}
|
15
|
+
DiscNumber.list(client)
|
16
|
+
end
|
17
|
+
end
|
18
|
+
|
19
|
+
describe '#totals' do
|
20
|
+
it 'should return totals' do
|
21
|
+
client.stubs.get('/v1.0/accounts/accountId/discnumbers/totals') {|env| [200, {}, '<Response></Response>']}
|
22
|
+
DiscNumber.totals(client)
|
23
|
+
end
|
24
|
+
end
|
25
|
+
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ruby-bandwidth-iris
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Andrey Belchikov
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-
|
11
|
+
date: 2015-07-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: builder
|
@@ -184,6 +184,7 @@ files:
|
|
184
184
|
- spec/bandwidth-iris/city_spec.rb
|
185
185
|
- spec/bandwidth-iris/client_spec.rb
|
186
186
|
- spec/bandwidth-iris/covered_rate_center_spec.rb
|
187
|
+
- spec/bandwidth-iris/disc_number_spec.rb
|
187
188
|
- spec/bandwidth-iris/disconnect_spec.rb
|
188
189
|
- spec/bandwidth-iris/dlda_spec.rb
|
189
190
|
- spec/bandwidth-iris/import_to_account_spec.rb
|
@@ -234,6 +235,7 @@ test_files:
|
|
234
235
|
- spec/bandwidth-iris/city_spec.rb
|
235
236
|
- spec/bandwidth-iris/client_spec.rb
|
236
237
|
- spec/bandwidth-iris/covered_rate_center_spec.rb
|
238
|
+
- spec/bandwidth-iris/disc_number_spec.rb
|
237
239
|
- spec/bandwidth-iris/disconnect_spec.rb
|
238
240
|
- spec/bandwidth-iris/dlda_spec.rb
|
239
241
|
- spec/bandwidth-iris/import_to_account_spec.rb
|