Class: Nexmo::Client

Inherits:
Object
  • Object
show all
Defined in:
lib/nexmo/client.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(options = nil) ⇒ Client

Returns a new instance of Client.


5
6
7
# File 'lib/nexmo/client.rb', line 5

def initialize(options = nil)
  @config = Nexmo.config.merge(options)
end

Instance Attribute Details

#configObject (readonly)

Returns the value of attribute config


3
4
5
# File 'lib/nexmo/client.rb', line 3

def config
  @config
end

Instance Method Details

#accountAccount

Returns:


17
18
19
# File 'lib/nexmo/client.rb', line 17

def 
  @account ||= Account.new(config)
end

#alertsAlerts

Returns:


23
24
25
# File 'lib/nexmo/client.rb', line 23

def alerts
  @alerts ||= Alerts.new(config)
end

#applicationsApplications

Returns:


29
30
31
# File 'lib/nexmo/client.rb', line 29

def applications
  @applications ||= Applications.new(config)
end

#callsCalls

Returns:


35
36
37
# File 'lib/nexmo/client.rb', line 35

def calls
  @calls ||= Calls.new(config)
end

#conversationsConversations

Returns:


41
42
43
# File 'lib/nexmo/client.rb', line 41

def conversations
  @conversations ||= Conversations.new(config)
end

#conversionsConversions

Returns:


47
48
49
# File 'lib/nexmo/client.rb', line 47

def conversions
  @conversions ||= Conversions.new(config)
end

#filesFiles

Returns:


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

def files
  @files ||= Files.new(config)
end

#messagesMessages

Returns:


59
60
61
# File 'lib/nexmo/client.rb', line 59

def messages
  @messages ||= Messages.new(config)
end

#number_insightNumberInsight

Returns:


65
66
67
# File 'lib/nexmo/client.rb', line 65

def number_insight
  @number_insight ||= NumberInsight.new(config)
end

#numbersNumbers

Returns:


71
72
73
# File 'lib/nexmo/client.rb', line 71

def numbers
  @numbers ||= Numbers.new(config)
end

#pricingPricingTypes

Returns:


77
78
79
# File 'lib/nexmo/client.rb', line 77

def pricing
  @pricing ||= PricingTypes.new(config)
end

#redactRedact

Returns:


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

def redact
  @redact ||= Redact.new(config)
end

#secretsSecrets

Returns:


89
90
91
# File 'lib/nexmo/client.rb', line 89

def secrets
  @secrets ||= Secrets.new(config)
end

#signatureSignature

Returns:


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

def signature
  @signature ||= Signature.new(config.signature_secret)
end

#smsSMS

Returns:


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

def sms
  @sms ||= SMS.new(config)
end

#tfaTFA

Returns:


101
102
103
# File 'lib/nexmo/client.rb', line 101

def tfa
  @tfa ||= TFA.new(config)
end

#verifyVerify

Returns:


107
108
109
# File 'lib/nexmo/client.rb', line 107

def verify
  @verify ||= Verify.new(config)
end