Class: Twilio::REST::Supersim::V1::FleetInstanceMetadata

Inherits:
InstanceResourceMetadata show all
Defined in:
lib/twilio-ruby/rest/supersim/v1/fleet.rb

Instance Method Summary collapse

Constructor Details

#initialize(version, fleet_instance, headers, status_code) ⇒ FleetInstanceMetadata

Initializes a new FleetInstanceMetadata.

Parameters:

  • Version that contains the resource

  • fleet_instance The instance associated with the metadata.

  • Header object with response headers.

  • The HTTP status code of the response.



451
452
453
454
# File 'lib/twilio-ruby/rest/supersim/v1/fleet.rb', line 451

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

Instance Method Details

#fleet ⇒ Object



456
457
458
# File 'lib/twilio-ruby/rest/supersim/v1/fleet.rb', line 456

def fleet
    @fleet_instance
end

#headers ⇒ Object



460
461
462
# File 'lib/twilio-ruby/rest/supersim/v1/fleet.rb', line 460

def headers
    @headers
end

#status_code ⇒ Object



464
465
466
# File 'lib/twilio-ruby/rest/supersim/v1/fleet.rb', line 464

def status_code
    @status_code
end

#to_s ⇒ Object



468
469
470
# File 'lib/twilio-ruby/rest/supersim/v1/fleet.rb', line 468

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