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

#config ⇒ Object (readonly)

Returns the value of attribute config.



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

def config
  @config
end

Instance Method Details

#account ⇒ Object



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

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

#alerts ⇒ Object



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

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

#applications ⇒ Object



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

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

#conversation ⇒ Object



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

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

#conversations ⇒ Object



55
56
57
# File 'lib/vonage/client.rb', line 55

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

#conversions ⇒ Object



62
63
64
# File 'lib/vonage/client.rb', line 62

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

#files ⇒ Object



69
70
71
# File 'lib/vonage/client.rb', line 69

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

#identity_insights ⇒ Object



76
77
78
# File 'lib/vonage/client.rb', line 76

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

#meetings ⇒ Object



83
84
85
# File 'lib/vonage/client.rb', line 83

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

#messages ⇒ Object



90
91
92
# File 'lib/vonage/client.rb', line 90

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

#messaging ⇒ Object



97
98
99
# File 'lib/vonage/client.rb', line 97

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

#network_number_verification ⇒ Object



104
105
106
# File 'lib/vonage/client.rb', line 104

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

#network_sim_swap ⇒ Object



111
112
113
# File 'lib/vonage/client.rb', line 111

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

#number_insight ⇒ Object



118
119
120
# File 'lib/vonage/client.rb', line 118

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

#number_insight_2 ⇒ Object



125
126
127
# File 'lib/vonage/client.rb', line 125

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

#numbers ⇒ Object



132
133
134
# File 'lib/vonage/client.rb', line 132

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

#pricing ⇒ Object



139
140
141
# File 'lib/vonage/client.rb', line 139

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

#proactive_connect ⇒ Object



146
147
148
# File 'lib/vonage/client.rb', line 146

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

#redact ⇒ Object



153
154
155
# File 'lib/vonage/client.rb', line 153

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

#secrets ⇒ Object



160
161
162
# File 'lib/vonage/client.rb', line 160

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

#signature ⇒ Object



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

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

#sms ⇒ Object



167
168
169
# File 'lib/vonage/client.rb', line 167

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

#subaccounts ⇒ Object



174
175
176
# File 'lib/vonage/client.rb', line 174

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

#tfa ⇒ Object



181
182
183
# File 'lib/vonage/client.rb', line 181

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

#users ⇒ Object



188
189
190
# File 'lib/vonage/client.rb', line 188

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

#verify ⇒ Object



195
196
197
# File 'lib/vonage/client.rb', line 195

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

#verify2 ⇒ Object



202
203
204
# File 'lib/vonage/client.rb', line 202

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

#video ⇒ Object



209
210
211
# File 'lib/vonage/client.rb', line 209

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

#voice ⇒ Object



216
217
218
# File 'lib/vonage/client.rb', line 216

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