Class: Twilio::REST::Numbers::V2::AuthorizationDocumentContext
- Inherits:
-
InstanceContext
- Object
- InstanceContext
- Twilio::REST::Numbers::V2::AuthorizationDocumentContext
- Defined in:
- lib/twilio-ruby/rest/numbers/v2/authorization_document.rb,
lib/twilio-ruby/rest/numbers/v2/authorization_document/dependent_hosted_number_order.rb
Overview
PLEASE NOTE that this class contains beta products that are subject to change. Use them with caution.
Defined Under Namespace
Classes: DependentHostedNumberOrderInstance, DependentHostedNumberOrderList, DependentHostedNumberOrderPage
Instance Method Summary collapse
-
#delete ⇒ Boolean
Delete the AuthorizationDocumentInstance.
-
#dependent_hosted_number_orders ⇒ DependentHostedNumberOrderList, DependentHostedNumberOrderContext
Access the dependent_hosted_number_orders.
-
#fetch ⇒ AuthorizationDocumentInstance
Fetch the AuthorizationDocumentInstance.
-
#initialize(version, sid) ⇒ AuthorizationDocumentContext
constructor
Initialize the AuthorizationDocumentContext.
-
#inspect ⇒ Object
Provide a detailed, user friendly representation.
-
#to_s ⇒ Object
Provide a user friendly representation.
Constructor Details
#initialize(version, sid) ⇒ AuthorizationDocumentContext
Initialize the AuthorizationDocumentContext
182 183 184 185 186 187 188 189 190 191 |
# File 'lib/twilio-ruby/rest/numbers/v2/authorization_document.rb', line 182 def initialize(version, sid) super(version) # Path Solution @solution = { sid: sid, } @uri = "/HostedNumber/AuthorizationDocuments/#{@solution[:sid]}" # Dependents @dependent_hosted_number_orders = nil end |
Instance Method Details
#delete ⇒ Boolean
Delete the AuthorizationDocumentInstance
195 196 197 198 199 |
# File 'lib/twilio-ruby/rest/numbers/v2/authorization_document.rb', line 195 def delete @version.delete('DELETE', @uri) end |
#dependent_hosted_number_orders ⇒ DependentHostedNumberOrderList, DependentHostedNumberOrderContext
Access the dependent_hosted_number_orders
219 220 221 222 223 224 225 |
# File 'lib/twilio-ruby/rest/numbers/v2/authorization_document.rb', line 219 def dependent_hosted_number_orders unless @dependent_hosted_number_orders @dependent_hosted_number_orders = DependentHostedNumberOrderList.new( @version, signing_document_sid: @solution[:sid], ) end @dependent_hosted_number_orders end |
#fetch ⇒ AuthorizationDocumentInstance
Fetch the AuthorizationDocumentInstance
204 205 206 207 208 209 210 211 212 213 |
# File 'lib/twilio-ruby/rest/numbers/v2/authorization_document.rb', line 204 def fetch payload = @version.fetch('GET', @uri) AuthorizationDocumentInstance.new( @version, payload, sid: @solution[:sid], ) end |
#inspect ⇒ Object
Provide a detailed, user friendly representation
236 237 238 239 |
# File 'lib/twilio-ruby/rest/numbers/v2/authorization_document.rb', line 236 def inspect context = @solution.map{|k, v| "#{k}: #{v}"}.join(',') "#<Twilio.Numbers.V2.AuthorizationDocumentContext #{context}>" end |
#to_s ⇒ Object
Provide a user friendly representation
229 230 231 232 |
# File 'lib/twilio-ruby/rest/numbers/v2/authorization_document.rb', line 229 def to_s context = @solution.map{|k, v| "#{k}: #{v}"}.join(',') "#<Twilio.Numbers.V2.AuthorizationDocumentContext #{context}>" end |