lib/telnyx/sim_card.rb in telnyx-0.0.7 vs lib/telnyx/sim_card.rb in telnyx-0.0.8
- old
+ new
@@ -12,8 +12,13 @@
path: %W[actions #{action}],
operations: [:create],
instance_methods: { create: action }
end
+ def self.register(params = {}, opts = {})
+ resp, opts = request(:post, "/v2/actions/register/sim_cards", params, opts)
+ Util.convert_to_telnyx_object(resp.data, opts)
+ end
+
OBJECT_NAME = "sim_card".freeze
end
end