Class: Twilio::REST::Trusthub::V1

Inherits:
Version
  • Object
show all
Defined in:
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: CustomerProfilesContext, CustomerProfilesInstance, CustomerProfilesList, CustomerProfilesPage, EndUserContext, EndUserInstance, EndUserList, EndUserPage, EndUserTypeContext, EndUserTypeInstance, EndUserTypeList, EndUserTypePage, PoliciesContext, PoliciesInstance, PoliciesList, PoliciesPage, SupportingDocumentContext, SupportingDocumentInstance, SupportingDocumentList, SupportingDocumentPage, SupportingDocumentTypeContext, SupportingDocumentTypeInstance, SupportingDocumentTypeList, SupportingDocumentTypePage, TrustProductsContext, TrustProductsInstance, TrustProductsList, TrustProductsPage

Instance Attribute Summary

Attributes inherited from Version

#domain

Instance Method Summary collapse

Methods inherited from Version

#absolute_url, #create, #delete, #exception, #fetch, #page, #read_limits, #relative_uri, #request, #stream, #update

Constructor Details

#initialize(domain) ⇒ V1

Initialize the V1 version of Trusthub



21
22
23
24
25
26
27
28
29
30
31
# File 'lib/twilio-ruby/rest/trusthub/v1.rb', line 21

def initialize(domain)
    super
    @version = 'v1'
    @customer_profiles = nil
    @end_users = nil
    @end_user_types = nil
    @policies = nil
    @supporting_documents = nil
    @supporting_document_types = nil
    @trust_products = nil
end

Instance Method Details

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

Parameters:

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

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

Returns:



37
38
39
40
41
42
43
44
45
46
# File 'lib/twilio-ruby/rest/trusthub/v1.rb', line 37

def customer_profiles(sid=:unset)
    if sid.nil?
        raise ArgumentError, 'sid cannot be nil'
    end
    if sid == :unset
        @customer_profiles ||= CustomerProfilesList.new self
    else
        CustomerProfilesContext.new(self, sid)
    end
end

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

Parameters:

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

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

Returns:



65
66
67
68
69
70
71
72
73
74
# File 'lib/twilio-ruby/rest/trusthub/v1.rb', line 65

def end_user_types(sid=:unset)
    if sid.nil?
        raise ArgumentError, 'sid cannot be nil'
    end
    if sid == :unset
        @end_user_types ||= EndUserTypeList.new self
    else
        EndUserTypeContext.new(self, sid)
    end
end

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

Parameters:

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

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

Returns:



51
52
53
54
55
56
57
58
59
60
# File 'lib/twilio-ruby/rest/trusthub/v1.rb', line 51

def end_users(sid=:unset)
    if sid.nil?
        raise ArgumentError, 'sid cannot be nil'
    end
    if sid == :unset
        @end_users ||= EndUserList.new self
    else
        EndUserContext.new(self, sid)
    end
end

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

Parameters:

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

    The unique string that identifies the Policy resource.

Returns:



79
80
81
82
83
84
85
86
87
88
# File 'lib/twilio-ruby/rest/trusthub/v1.rb', line 79

def policies(sid=:unset)
    if sid.nil?
        raise ArgumentError, 'sid cannot be nil'
    end
    if sid == :unset
        @policies ||= PoliciesList.new self
    else
        PoliciesContext.new(self, sid)
    end
end

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

Parameters:

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

    The unique string that identifies the Supporting Document Type resource.

Returns:



107
108
109
110
111
112
113
114
115
116
# File 'lib/twilio-ruby/rest/trusthub/v1.rb', line 107

def supporting_document_types(sid=:unset)
    if sid.nil?
        raise ArgumentError, 'sid cannot be nil'
    end
    if sid == :unset
        @supporting_document_types ||= SupportingDocumentTypeList.new self
    else
        SupportingDocumentTypeContext.new(self, sid)
    end
end

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

Parameters:

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

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

Returns:



93
94
95
96
97
98
99
100
101
102
# File 'lib/twilio-ruby/rest/trusthub/v1.rb', line 93

def supporting_documents(sid=:unset)
    if sid.nil?
        raise ArgumentError, 'sid cannot be nil'
    end
    if sid == :unset
        @supporting_documents ||= SupportingDocumentList.new self
    else
        SupportingDocumentContext.new(self, sid)
    end
end

#to_sObject

Provide a user friendly representation



133
134
135
# File 'lib/twilio-ruby/rest/trusthub/v1.rb', line 133

def to_s
    '<Twilio::REST::Trusthub::V1>';
end

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

Parameters:

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

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

Returns:



121
122
123
124
125
126
127
128
129
130
# File 'lib/twilio-ruby/rest/trusthub/v1.rb', line 121

def trust_products(sid=:unset)
    if sid.nil?
        raise ArgumentError, 'sid cannot be nil'
    end
    if sid == :unset
        @trust_products ||= TrustProductsList.new self
    else
        TrustProductsContext.new(self, sid)
    end
end