Class: Nexmo::Namespace
- Inherits:
-
Object
show all
- Defined in:
- lib/nexmo/namespace.rb
Direct Known Subclasses
Account, Alerts, Applications, CallDTMF, CallStream, CallTalk, Calls, Conversions, Files, Messages, NumberInsight, Numbers, Pricing, Redact, SMS, Verify
Class Method Summary
collapse
Instance Method Summary
collapse
Constructor Details
#initialize(client) ⇒ Namespace
Returns a new instance of Namespace.
7
8
9
10
11
12
13
14
|
# File 'lib/nexmo/namespace.rb', line 7
def initialize(client)
@client = client
@host = self.class.host
@http = Net::HTTP.new(@host, Net::HTTP.https_default_port)
@http.use_ssl = true
end
|
Class Method Details
.authentication ⇒ Object
24
25
26
|
# File 'lib/nexmo/namespace.rb', line 24
def self.authentication
@authentication ||= KeySecretParams
end
|
.authentication=(authentication) ⇒ Object
28
29
30
|
# File 'lib/nexmo/namespace.rb', line 28
def self.authentication=(authentication)
@authentication = authentication
end
|
.host ⇒ Object
16
17
18
|
# File 'lib/nexmo/namespace.rb', line 16
def self.host
@host ||= 'api.nexmo.com'
end
|
.host=(host) ⇒ Object
20
21
22
|
# File 'lib/nexmo/namespace.rb', line 20
def self.host=(host)
@host = host
end
|
.request_body ⇒ Object
32
33
34
|
# File 'lib/nexmo/namespace.rb', line 32
def self.request_body
@request_body ||= FormData
end
|
.request_body=(request_body) ⇒ Object
36
37
38
|
# File 'lib/nexmo/namespace.rb', line 36
def self.request_body=(request_body)
@request_body = request_body
end
|