-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* add new wireless endpoints added: * ota_updates * mobile_operator_networks * replace coveralls with coveralls_reborn
- Loading branch information
Showing
6 changed files
with
58 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
# frozen_string_literal: true | ||
|
||
module Telnyx | ||
class MobileOperatorNetwork < APIResource | ||
extend APIOperations::List | ||
|
||
OBJECT_NAME = "mobile_operator_network".freeze | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
# frozen_string_literal: true | ||
|
||
module Telnyx | ||
class OtaUpdate < APIResource | ||
extend APIOperations::List | ||
|
||
OBJECT_NAME = "ota_update".freeze | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
# frozen_string_literal: true | ||
|
||
require_relative "../test_helper" | ||
|
||
module Telnyx | ||
class MobileOperatorNetworkTest < Test::Unit::TestCase | ||
should "be listable" do | ||
mobile_ops = MobileOperatorNetwork.list | ||
assert_requested :get, "#{Telnyx.api_base}/v2/mobile_operator_networks" | ||
assert_kind_of ListObject, mobile_ops | ||
assert_kind_of MobileOperatorNetwork, mobile_ops.first | ||
end | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
# frozen_string_literal: true | ||
|
||
require_relative "../test_helper" | ||
|
||
module Telnyx | ||
class OtaUpdateTest < Test::Unit::TestCase | ||
should "be retrievable" do | ||
ota_update = OtaUpdate.retrieve "12345" | ||
assert_requested :get, "#{Telnyx.api_base}/v2/ota_updates/12345" | ||
assert_kind_of OtaUpdate, ota_update | ||
end | ||
|
||
should "be listable" do | ||
ota_updates = OtaUpdate.list | ||
assert_requested :get, "#{Telnyx.api_base}/v2/ota_updates" | ||
assert_kind_of ListObject, ota_updates | ||
assert_kind_of OtaUpdate, ota_updates.first | ||
end | ||
end | ||
end |