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.



25
26
27
28
29
# File 'lib/plivo/rest_client.rb', line 25

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.



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

def addresses
  @addresses
end

#applicationsObject (readonly)

Returns the value of attribute applications.



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

def applications
  @applications
end

#brandObject (readonly)

Returns the value of attribute brand.



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

def brand
  @brand
end

#call_feedbackObject (readonly)

Returns the value of attribute call_feedback.



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

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

#campaignObject (readonly)

Returns the value of attribute campaign.



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

def campaign
  @campaign
end

#compliance_applicationsObject (readonly)

Returns the value of attribute compliance_applications.



20
21
22
# File 'lib/plivo/rest_client.rb', line 20

def compliance_applications
  @compliance_applications
end

#compliance_document_typesObject (readonly)

Returns the value of attribute compliance_document_types.



20
21
22
# File 'lib/plivo/rest_client.rb', line 20

def compliance_document_types
  @compliance_document_types
end

#compliance_documentsObject (readonly)

Returns the value of attribute compliance_documents.



20
21
22
# File 'lib/plivo/rest_client.rb', line 20

def compliance_documents
  @compliance_documents
end

#compliance_requirementsObject (readonly)

Returns the value of attribute compliance_requirements.



20
21
22
# File 'lib/plivo/rest_client.rb', line 20

def compliance_requirements
  @compliance_requirements
end

#conferencesObject (readonly)

Returns the value of attribute conferences.



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

def conferences
  @conferences
end

#end_usersObject (readonly)

Returns the value of attribute end_users.



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

def end_users
  @end_users
end

#endpointsObject (readonly)

Returns the value of attribute endpoints.



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

def endpoints
  @endpoints
end

#identitiesObject (readonly)

Returns the value of attribute identities.



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

def identities
  @identities
end

#lookupObject (readonly)

Returns the value of attribute lookup.



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

def lookup
  @lookup
end

#mediaObject (readonly)

Returns the value of attribute media.



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

def media
  @media
end

#messagesObject (readonly)

Resources



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

def messages
  @messages
end

#multipartycallsObject (readonly)

Returns the value of attribute multipartycalls.



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

def multipartycalls
  @multipartycalls
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.



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

def phone_numbers
  @phone_numbers
end

#powerpacksObject (readonly)

Returns the value of attribute powerpacks.



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

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

#profileObject (readonly)

Returns the value of attribute profile.



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

def profile
  @profile
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

#tokenObject (readonly)

Returns the value of attribute token.



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

def token
  @token
end

#tollfree_verificationsObject (readonly)

Returns the value of attribute tollfree_verifications.



22
23
24
# File 'lib/plivo/rest_client.rb', line 22

def tollfree_verifications
  @tollfree_verifications
end

#verify_caller_idObject (readonly)

Returns the value of attribute verify_caller_id.



23
24
25
# File 'lib/plivo/rest_client.rb', line 23

def verify_caller_id
  @verify_caller_id
end

#verify_sessionObject (readonly)

Returns the value of attribute verify_session.



21
22
23
# File 'lib/plivo/rest_client.rb', line 21

def verify_session
  @verify_session
end