Class: Vonage::Client

Inherits:
Object
  • Object
show all
Extended by:
T::Sig
Defined in:
lib/vonage/client.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(options = nil) ⇒ Client

Returns a new instance of Client.


11
12
13
# File 'lib/vonage/client.rb', line 11

def initialize(options = nil)
  @config = T.let(Vonage.config.merge(options), Vonage::Config)
end

Instance Attribute Details

#configObject (readonly)

Returns the value of attribute config


8
9
10
# File 'lib/vonage/client.rb', line 8

def config
  @config
end

Instance Method Details

#accountObject


25
26
27
# File 'lib/vonage/client.rb', line 25

def 
  @account ||= T.let(Account.new(config), T.nilable(Vonage::Account))
end

#alertsObject


32
33
34
# File 'lib/vonage/client.rb', line 32

def alerts
  @alerts ||= T.let(Alerts.new(config), T.nilable(Vonage::Alerts))
end

#applicationsObject


39
40
41
# File 'lib/vonage/client.rb', line 39

def applications
  @applications ||= T.let(Applications.new(config), T.nilable(Vonage::Applications))
end

#conversationsObject


46
47
48
# File 'lib/vonage/client.rb', line 46

def conversations
  @conversations ||= T.let(Conversations.new(config), T.nilable(Vonage::Conversations))
end

#conversionsObject


53
54
55
# File 'lib/vonage/client.rb', line 53

def conversions
  @conversions ||= T.let(Conversions.new(config), T.nilable(Vonage::Conversions))
end

#filesObject


60
61
62
# File 'lib/vonage/client.rb', line 60

def files
  @files ||= T.let(Files.new(config), T.nilable(Vonage::Files))
end

#messagesObject


67
68
69
# File 'lib/vonage/client.rb', line 67

def messages
  @messages ||= T.let(Messages.new(config), T.nilable(Vonage::Messages))
end

#number_insightObject


74
75
76
# File 'lib/vonage/client.rb', line 74

def number_insight
  @number_insight ||= T.let(NumberInsight.new(config), T.nilable(Vonage::NumberInsight))
end

#numbersObject


81
82
83
# File 'lib/vonage/client.rb', line 81

def numbers
  @numbers ||= T.let(Numbers.new(config), T.nilable(Vonage::Numbers))
end

#pricingObject


88
89
90
# File 'lib/vonage/client.rb', line 88

def pricing
  @pricing ||= T.let(PricingTypes.new(config), T.nilable(Vonage::PricingTypes))
end

#redactObject


95
96
97
# File 'lib/vonage/client.rb', line 95

def redact
  @redact ||= T.let(Redact.new(config), T.nilable(Vonage::Redact))
end

#secretsObject


102
103
104
# File 'lib/vonage/client.rb', line 102

def secrets
  @secrets ||= T.let(Secrets.new(config), T.nilable(Vonage::Secrets))
end

#signatureObject


18
19
20
# File 'lib/vonage/client.rb', line 18

def signature
  @signature ||= T.let(Signature.new(config), T.nilable(Vonage::Signature))
end

#smsObject


109
110
111
# File 'lib/vonage/client.rb', line 109

def sms
  @sms ||= T.let(SMS.new(config), T.nilable(Vonage::SMS))
end

#tfaObject


116
117
118
# File 'lib/vonage/client.rb', line 116

def tfa
  @tfa ||= T.let(TFA.new(config), T.nilable(Vonage::TFA))
end

#verifyObject


123
124
125
# File 'lib/vonage/client.rb', line 123

def verify
  @verify ||= T.let(Verify.new(config), T.nilable(Vonage::Verify))
end

#voiceObject


130
131
132
# File 'lib/vonage/client.rb', line 130

def voice
  @voice ||= T.let(Voice.new(config), T.nilable(Vonage::Voice))
end