Class: RingCentralSdk::REST::Extension
- Inherits:
-
Object
- Object
- RingCentralSdk::REST::Extension
- Defined in:
- lib/ringcentral_sdk/rest/extension.rb
Instance Attribute Summary collapse
-
#client ⇒ Object
Returns the value of attribute client.
-
#extension_id ⇒ Object
readonly
Returns the value of attribute extension_id.
-
#presence ⇒ Object
readonly
Returns the value of attribute presence.
Instance Method Summary collapse
-
#initialize(extension_id, opts = {}) ⇒ Extension
constructor
A new instance of Extension.
Constructor Details
#initialize(extension_id, opts = {}) ⇒ Extension
Returns a new instance of Extension.
6 7 8 9 10 |
# File 'lib/ringcentral_sdk/rest/extension.rb', line 6 def initialize(extension_id, opts={}) @extension_id = extension_id @client = opts.has_key?(:client) ? opts[:client] : nil @presence = RingCentralSdk::REST::ExtensionPresence.new(extension_id, opts) end |
Instance Attribute Details
#client ⇒ Object
Returns the value of attribute client.
5 6 7 |
# File 'lib/ringcentral_sdk/rest/extension.rb', line 5 def client @client end |
#extension_id ⇒ Object (readonly)
Returns the value of attribute extension_id.
3 4 5 |
# File 'lib/ringcentral_sdk/rest/extension.rb', line 3 def extension_id @extension_id end |
#presence ⇒ Object (readonly)
Returns the value of attribute presence.
4 5 6 |
# File 'lib/ringcentral_sdk/rest/extension.rb', line 4 def presence @presence end |