Class: RingCentralSdk::REST::Extension

Inherits:
Object
  • Object
show all
Defined in:
lib/ringcentral_sdk/rest/extension.rb

Overview

Extension represents a RingCentral user extension object

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#clientObject

Returns the value of attribute client.



7
8
9
# File 'lib/ringcentral_sdk/rest/extension.rb', line 7

def client
  @client
end

#extension_idObject (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

#presenceObject (readonly)

Returns the value of attribute presence.



6
7
8
# File 'lib/ringcentral_sdk/rest/extension.rb', line 6

def presence
  @presence
end