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 (Version)

    Version that contains the resource

  • [}FleetInstance]

    fleet_instance The instance associated with the metadata.

  • headers (Hash)

    Header object with response headers.

  • status_code (Integer)

    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

#fleetObject



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

def fleet
    @fleet_instance
end

#headersObject



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

def headers
    @headers
end

#status_codeObject



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

def status_code
    @status_code
end

#to_sObject



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