Class: Twilio::REST::Trusthub::V1::SupportingDocumentTypeContext
- Inherits:
-
InstanceContext
- Object
- InstanceContext
- Twilio::REST::Trusthub::V1::SupportingDocumentTypeContext
- Defined in:
- lib/twilio-ruby/rest/trusthub/v1/supporting_document_type.rb
Instance Method Summary collapse
-
#fetch ⇒ SupportingDocumentTypeInstance
Fetch the SupportingDocumentTypeInstance.
-
#initialize(version, sid) ⇒ SupportingDocumentTypeContext
constructor
Initialize the SupportingDocumentTypeContext.
-
#inspect ⇒ Object
Provide a detailed, user friendly representation.
-
#to_s ⇒ Object
Provide a user friendly representation.
Constructor Details
#initialize(version, sid) ⇒ SupportingDocumentTypeContext
Initialize the SupportingDocumentTypeContext
136 137 138 139 140 141 142 143 144 |
# File 'lib/twilio-ruby/rest/trusthub/v1/supporting_document_type.rb', line 136 def initialize(version, sid) super(version) # Path Solution @solution = { sid: sid, } @uri = "/SupportingDocumentTypes/#{@solution[:sid]}" end |
Instance Method Details
#fetch ⇒ SupportingDocumentTypeInstance
Fetch the SupportingDocumentTypeInstance
148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 |
# File 'lib/twilio-ruby/rest/trusthub/v1/supporting_document_type.rb', line 148 def fetch headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) payload = @version.fetch('GET', @uri, headers: headers) SupportingDocumentTypeInstance.new( @version, payload, sid: @solution[:sid], ) end |
#inspect ⇒ Object
Provide a detailed, user friendly representation
174 175 176 177 |
# File 'lib/twilio-ruby/rest/trusthub/v1/supporting_document_type.rb', line 174 def inspect context = @solution.map{|k, v| "#{k}: #{v}"}.join(',') "#<Twilio.Trusthub.V1.SupportingDocumentTypeContext #{context}>" end |
#to_s ⇒ Object
Provide a user friendly representation
167 168 169 170 |
# File 'lib/twilio-ruby/rest/trusthub/v1/supporting_document_type.rb', line 167 def to_s context = @solution.map{|k, v| "#{k}: #{v}"}.join(',') "#<Twilio.Trusthub.V1.SupportingDocumentTypeContext #{context}>" end |