class Twilio::REST::Numbers::V2::RegulatoryComplianceList::BundleContext::ItemAssignmentContext

Public Class Methods

new(version, bundle_sid, sid) click to toggle source

Initialize the ItemAssignmentContext @param [Version] version Version that contains the resource @param [String] bundle_sid The unique string that we created to identify the

Bundle resource.

@param [String] sid The unique string that we created to identify the Identity

resource.

@return [ItemAssignmentContext] ItemAssignmentContext

Calls superclass method Twilio::REST::InstanceContext::new
    # File lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/bundle/item_assignment.rb
168 def initialize(version, bundle_sid, sid)
169   super(version)
170 
171   # Path Solution
172   @solution = {bundle_sid: bundle_sid, sid: sid, }
173   @uri = "/RegulatoryCompliance/Bundles/#{@solution[:bundle_sid]}/ItemAssignments/#{@solution[:sid]}"
174 end

Public Instance Methods

delete() click to toggle source

Delete the ItemAssignmentInstance @return [Boolean] true if delete succeeds, false otherwise

    # File lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/bundle/item_assignment.rb
193 def delete
194    @version.delete('DELETE', @uri)
195 end
fetch() click to toggle source

Fetch the ItemAssignmentInstance @return [ItemAssignmentInstance] Fetched ItemAssignmentInstance

    # File lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/bundle/item_assignment.rb
179 def fetch
180   payload = @version.fetch('GET', @uri)
181 
182   ItemAssignmentInstance.new(
183       @version,
184       payload,
185       bundle_sid: @solution[:bundle_sid],
186       sid: @solution[:sid],
187   )
188 end
inspect() click to toggle source

Provide a detailed, user friendly representation

    # File lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/bundle/item_assignment.rb
206 def inspect
207   context = @solution.map {|k, v| "#{k}: #{v}"}.join(',')
208   "#<Twilio.Numbers.V2.ItemAssignmentContext #{context}>"
209 end
to_s() click to toggle source

Provide a user friendly representation

    # File lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/bundle/item_assignment.rb
199 def to_s
200   context = @solution.map {|k, v| "#{k}: #{v}"}.join(',')
201   "#<Twilio.Numbers.V2.ItemAssignmentContext #{context}>"
202 end