Class: RingCentralSdk::REST::Extension
- Inherits:
-
Object
- Object
- RingCentralSdk::REST::Extension
- Defined in:
- lib/ringcentral_sdk/rest/extension.rb
Overview
Extension represents a RingCentral user extension object
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.
8 9 10 11 12 |
# File 'lib/ringcentral_sdk/rest/extension.rb', line 8 def initialize(extension_id, opts = {}) @extension_id = extension_id @client = opts.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.
7 8 9 |
# File 'lib/ringcentral_sdk/rest/extension.rb', line 7 def client @client end |
#extension_id ⇒ Object (readonly)
Returns the value of attribute extension_id.
5 6 7 |
# File 'lib/ringcentral_sdk/rest/extension.rb', line 5 def extension_id @extension_id end |
#presence ⇒ Object (readonly)
Returns the value of attribute presence.
6 7 8 |
# File 'lib/ringcentral_sdk/rest/extension.rb', line 6 def presence @presence end |