Sha256: 5de804c9f9438687c003b61a739a5c6c2e77127f2516064c70013eb0b200103f
Contents?: true
Size: 748 Bytes
Versions: 4
Compression:
Stored size: 748 Bytes
Contents
# frozen_string_literal: true module Telnyx class SimCard < APIResource include Telnyx::APIOperations::Save extend APIOperations::NestedResource extend APIOperations::List ACTIONS = %w[deactivate activate].freeze ACTIONS.each do |action| nested_resource_class_methods action, 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
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
telnyx-2.3.0 | lib/telnyx/sim_card.rb |
telnyx-2.2.0 | lib/telnyx/sim_card.rb |
telnyx-0.1.0 | lib/telnyx/sim_card.rb |
telnyx-0.0.8 | lib/telnyx/sim_card.rb |