Class: RingCentralSdk::REST::Extension

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

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#clientObject

Returns the value of attribute client.



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

def client
  @client
end

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

#presenceObject (readonly)

Returns the value of attribute presence.



4
5
6
# File 'lib/ringcentral_sdk/rest/extension.rb', line 4

def presence
  @presence
end