Class: Telnyx::Resources::Actions

Inherits:
Object
  • Object
show all
Defined in:
lib/telnyx/resources/actions.rb,
lib/telnyx/resources/actions/purchase.rb,
lib/telnyx/resources/actions/register.rb

Defined Under Namespace

Classes: Purchase, Register

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(client:) ⇒ Actions

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Returns a new instance of Actions.

Parameters:



17
18
19
20
21
# File 'lib/telnyx/resources/actions.rb', line 17

def initialize(client:)
  @client = client
  @purchase = Telnyx::Resources::Actions::Purchase.new(client: client)
  @register = Telnyx::Resources::Actions::Register.new(client: client)
end

Instance Attribute Details

#purchaseTelnyx::Resources::Actions::Purchase (readonly)

SIM Cards operations



8
9
10
# File 'lib/telnyx/resources/actions.rb', line 8

def purchase
  @purchase
end

#registerTelnyx::Resources::Actions::Register (readonly)

SIM Cards operations



12
13
14
# File 'lib/telnyx/resources/actions.rb', line 12

def register
  @register
end