Class: Plivo::RestClient

Inherits:
BaseClient show all
Defined in:
lib/plivo/rest_client.rb

Instance Attribute Summary collapse

Attributes inherited from BaseClient

#auth_credentials, #headers

Instance Method Summary collapse

Methods inherited from BaseClient

#auth_id, #process_response, #send_request

Constructor Details

#initialize(auth_id = nil, auth_token = nil, proxy_options = nil, timeout = 5) ⇒ RestClient

Returns a new instance of RestClient.



17
18
19
20
21
# File 'lib/plivo/rest_client.rb', line 17

def initialize(auth_id = nil, auth_token = nil, proxy_options = nil, timeout=5)
  configure_base_uri
  super
  configure_interfaces
end

Instance Attribute Details

#accountObject (readonly)

Resources



9
10
11
# File 'lib/plivo/rest_client.rb', line 9

def 
  @account
end

#addressesObject (readonly)

Returns the value of attribute addresses.



12
13
14
# File 'lib/plivo/rest_client.rb', line 12

def addresses
  @addresses
end

#applicationsObject (readonly)

Returns the value of attribute applications.



11
12
13
# File 'lib/plivo/rest_client.rb', line 11

def applications
  @applications
end

#call_feedbackObject (readonly)

Returns the value of attribute call_feedback.



13
14
15
# File 'lib/plivo/rest_client.rb', line 13

def call_feedback
  @call_feedback
end

#callsObject (readonly)

Returns the value of attribute calls.



10
11
12
# File 'lib/plivo/rest_client.rb', line 10

def calls
  @calls
end

#conferencesObject (readonly)

Returns the value of attribute conferences.



10
11
12
# File 'lib/plivo/rest_client.rb', line 10

def conferences
  @conferences
end

#endpointsObject (readonly)

Returns the value of attribute endpoints.



11
12
13
# File 'lib/plivo/rest_client.rb', line 11

def endpoints
  @endpoints
end

#identitiesObject (readonly)

Returns the value of attribute identities.



12
13
14
# File 'lib/plivo/rest_client.rb', line 12

def identities
  @identities
end

#mediaObject (readonly)

Returns the value of attribute media.



15
16
17
# File 'lib/plivo/rest_client.rb', line 15

def media
  @media
end

#messagesObject (readonly)

Resources



9
10
11
# File 'lib/plivo/rest_client.rb', line 9

def messages
  @messages
end

#numbersObject (readonly)

Returns the value of attribute numbers.



10
11
12
# File 'lib/plivo/rest_client.rb', line 10

def numbers
  @numbers
end

#phone_numbersObject (readonly)

Returns the value of attribute phone_numbers.



11
12
13
# File 'lib/plivo/rest_client.rb', line 11

def phone_numbers
  @phone_numbers
end

#powerpacksObject (readonly)

Returns the value of attribute powerpacks.



14
15
16
# File 'lib/plivo/rest_client.rb', line 14

def powerpacks
  @powerpacks
end

#pricingsObject (readonly)

Returns the value of attribute pricings.



10
11
12
# File 'lib/plivo/rest_client.rb', line 10

def pricings
  @pricings
end

#recordingsObject (readonly)

Resources



9
10
11
# File 'lib/plivo/rest_client.rb', line 9

def recordings
  @recordings
end

#subaccountsObject (readonly)

Resources



9
10
11
# File 'lib/plivo/rest_client.rb', line 9

def subaccounts
  @subaccounts
end