Class: Twilio::REST::Numbers::V2::RegulatoryComplianceList::BundleContext::ItemAssignmentInstanceMetadata

Inherits:
InstanceResourceMetadata
  • Object
show all
Defined in:
lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/bundle/item_assignment.rb

Instance Method Summary collapse

Constructor Details

#initialize(version, item_assignment_instance, headers, status_code) ⇒ ItemAssignmentInstanceMetadata

Initializes a new ItemAssignmentInstanceMetadata.

Parameters:

  • version (Version)

    Version that contains the resource

  • [}ItemAssignmentInstance]

    item_assignment_instance The instance associated with the metadata.

  • headers (Hash)

    Header object with response headers.

  • status_code (Integer)

    The HTTP status code of the response.



333
334
335
336
# File 'lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/bundle/item_assignment.rb', line 333

def initialize(version, item_assignment_instance, headers, status_code)
    super(version, headers, status_code)
    @item_assignment_instance = item_assignment_instance
end

Instance Method Details

#headersObject



342
343
344
# File 'lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/bundle/item_assignment.rb', line 342

def headers
    @headers
end

#item_assignmentObject



338
339
340
# File 'lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/bundle/item_assignment.rb', line 338

def item_assignment
    @item_assignment_instance
end

#status_codeObject



346
347
348
# File 'lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/bundle/item_assignment.rb', line 346

def status_code
    @status_code
end

#to_sObject



350
351
352
# File 'lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/bundle/item_assignment.rb', line 350

def to_s
  "<Twilio.Api.V2010.ItemAssignmentInstanceMetadata status=#{@status_code}>"
end