Class: Twilio::REST::Trusthub

Inherits:
Domain
  • Object
show all
Defined in:
lib/twilio-ruby/rest/trusthub.rb,
lib/twilio-ruby/rest/trusthub/v1.rb,
lib/twilio-ruby/rest/trusthub/v1/end_user.rb,
lib/twilio-ruby/rest/trusthub/v1/policies.rb,
lib/twilio-ruby/rest/trusthub/v1/end_user_type.rb,
lib/twilio-ruby/rest/trusthub/v1/trust_products.rb,
lib/twilio-ruby/rest/trusthub/v1/customer_profiles.rb,
lib/twilio-ruby/rest/trusthub/v1/supporting_document.rb,
lib/twilio-ruby/rest/trusthub/v1/supporting_document_type.rb,
lib/twilio-ruby/rest/trusthub/v1/trust_products/trust_products_evaluations.rb,
lib/twilio-ruby/rest/trusthub/v1/customer_profiles/customer_profiles_evaluations.rb,
lib/twilio-ruby/rest/trusthub/v1/trust_products/trust_products_entity_assignments.rb,
lib/twilio-ruby/rest/trusthub/v1/customer_profiles/customer_profiles_entity_assignments.rb,
lib/twilio-ruby/rest/trusthub/v1/trust_products/trust_products_channel_endpoint_assignment.rb,
lib/twilio-ruby/rest/trusthub/v1/customer_profiles/customer_profiles_channel_endpoint_assignment.rb

Defined Under Namespace

Classes: V1

Instance Attribute Summary

Attributes inherited from Domain

#client

Instance Method Summary collapse

Methods inherited from Domain

#absolute_url, #request

Constructor Details

#initialize(twilio) ⇒ Trusthub

Initialize the Trusthub Domain



14
15
16
17
18
19
20
21
22
23
# File 'lib/twilio-ruby/rest/trusthub.rb', line 14

def initialize(twilio)
  super

  @base_url = 'https://trusthub.twilio.com'
  @host = 'trusthub.twilio.com'
  @port = 443

  # Versions
  @v1 = nil
end

Instance Method Details

#customer_profiles(sid = :unset) ⇒ Twilio::REST::Trusthub::V1::CustomerProfilesInstance, Twilio::REST::Trusthub::V1::CustomerProfilesList

Parameters:

  • sid (String) (defaults to: :unset)

    The unique string that we created to identify the Customer-Profile resource.

Returns:



36
37
38
# File 'lib/twilio-ruby/rest/trusthub.rb', line 36

def customer_profiles(sid=:unset)
  self.v1.customer_profiles(sid)
end

#end_user_types(sid = :unset) ⇒ Twilio::REST::Trusthub::V1::EndUserTypeInstance, Twilio::REST::Trusthub::V1::EndUserTypeList

Parameters:

  • sid (String) (defaults to: :unset)

    The unique string that identifies the End-User Type resource.

Returns:



54
55
56
# File 'lib/twilio-ruby/rest/trusthub.rb', line 54

def end_user_types(sid=:unset)
  self.v1.end_user_types(sid)
end

#end_users(sid = :unset) ⇒ Twilio::REST::Trusthub::V1::EndUserInstance, Twilio::REST::Trusthub::V1::EndUserList

Parameters:

  • sid (String) (defaults to: :unset)

    The unique string created by Twilio to identify the End User resource.

Returns:



45
46
47
# File 'lib/twilio-ruby/rest/trusthub.rb', line 45

def end_users(sid=:unset)
  self.v1.end_users(sid)
end

#policies(sid = :unset) ⇒ Twilio::REST::Trusthub::V1::PoliciesInstance, Twilio::REST::Trusthub::V1::PoliciesList

Parameters:

  • sid (String) (defaults to: :unset)

    The unique string that identifies the Policy resource.

Returns:



62
63
64
# File 'lib/twilio-ruby/rest/trusthub.rb', line 62

def policies(sid=:unset)
  self.v1.policies(sid)
end

#supporting_document_types(sid = :unset) ⇒ Twilio::REST::Trusthub::V1::SupportingDocumentTypeInstance, Twilio::REST::Trusthub::V1::SupportingDocumentTypeList

Parameters:

  • sid (String) (defaults to: :unset)

    The unique string that identifies the Supporting Document Type resource.

Returns:



80
81
82
# File 'lib/twilio-ruby/rest/trusthub.rb', line 80

def supporting_document_types(sid=:unset)
  self.v1.supporting_document_types(sid)
end

#supporting_documents(sid = :unset) ⇒ Twilio::REST::Trusthub::V1::SupportingDocumentInstance, Twilio::REST::Trusthub::V1::SupportingDocumentList

Parameters:

  • sid (String) (defaults to: :unset)

    The unique string created by Twilio to identify the Supporting Document resource.

Returns:



71
72
73
# File 'lib/twilio-ruby/rest/trusthub.rb', line 71

def supporting_documents(sid=:unset)
  self.v1.supporting_documents(sid)
end

#to_sObject

Provide a user friendly representation



95
96
97
# File 'lib/twilio-ruby/rest/trusthub.rb', line 95

def to_s
  '#<Twilio::REST::Trusthub>'
end

#trust_products(sid = :unset) ⇒ Twilio::REST::Trusthub::V1::TrustProductsInstance, Twilio::REST::Trusthub::V1::TrustProductsList

Parameters:

  • sid (String) (defaults to: :unset)

    The unique string that we created to identify the Customer-Profile resource.

Returns:



89
90
91
# File 'lib/twilio-ruby/rest/trusthub.rb', line 89

def trust_products(sid=:unset)
  self.v1.trust_products(sid)
end

#v1Object

Version v1 of trusthub



27
28
29
# File 'lib/twilio-ruby/rest/trusthub.rb', line 27

def v1
  @v1 ||= V1.new self
end