Class: Twilio::REST::Numbers::V2::BundleCloneInstanceMetadata

Inherits:
InstanceResourceMetadata show all
Defined in:
lib/twilio-ruby/rest/numbers/v2/bundle_clone.rb

Instance Method Summary collapse

Constructor Details

#initialize(version, bundle_clone_instance, headers, status_code) ⇒ BundleCloneInstanceMetadata

Initializes a new BundleCloneInstanceMetadata.

Parameters:

  • version (Version)

    Version that contains the resource

  • [}BundleCloneInstance]

    bundle_clone_instance The instance associated with the metadata.

  • headers (Hash)

    Header object with response headers.

  • status_code (Integer)

    The HTTP status code of the response.



154
155
156
157
# File 'lib/twilio-ruby/rest/numbers/v2/bundle_clone.rb', line 154

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

Instance Method Details

#bundle_cloneObject



159
160
161
# File 'lib/twilio-ruby/rest/numbers/v2/bundle_clone.rb', line 159

def bundle_clone
    @bundle_clone_instance
end

#headersObject



163
164
165
# File 'lib/twilio-ruby/rest/numbers/v2/bundle_clone.rb', line 163

def headers
    @headers
end

#status_codeObject



167
168
169
# File 'lib/twilio-ruby/rest/numbers/v2/bundle_clone.rb', line 167

def status_code
    @status_code
end

#to_sObject



171
172
173
# File 'lib/twilio-ruby/rest/numbers/v2/bundle_clone.rb', line 171

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