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.



443
444
445
446
# File 'lib/twilio-ruby/rest/supersim/v1/fleet.rb', line 443

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

Instance Method Details

#fleetObject



448
449
450
# File 'lib/twilio-ruby/rest/supersim/v1/fleet.rb', line 448

def fleet
    @fleet_instance
end

#headersObject



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

def headers
    @headers
end

#status_codeObject



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

def status_code
    @status_code
end

#to_sObject



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

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