Class: Twilio::REST::Bulkexports::V1::ExportContext::DayInstanceMetadata

Inherits:
InstanceResourceMetadata show all
Defined in:
lib/twilio-ruby/rest/bulkexports/v1/export/day.rb

Instance Method Summary collapse

Constructor Details

#initialize(version, day_instance, headers, status_code) ⇒ DayInstanceMetadata

Initializes a new DayInstanceMetadata.

Parameters:

  • version (Version)

    Version that contains the resource

  • [}DayInstance]

    day_instance The instance associated with the metadata.

  • headers (Hash)

    Header object with response headers.

  • status_code (Integer)

    The HTTP status code of the response.



250
251
252
253
# File 'lib/twilio-ruby/rest/bulkexports/v1/export/day.rb', line 250

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

Instance Method Details

#dayObject



255
256
257
# File 'lib/twilio-ruby/rest/bulkexports/v1/export/day.rb', line 255

def day
    @day_instance
end

#headersObject



259
260
261
# File 'lib/twilio-ruby/rest/bulkexports/v1/export/day.rb', line 259

def headers
    @headers
end

#status_codeObject



263
264
265
# File 'lib/twilio-ruby/rest/bulkexports/v1/export/day.rb', line 263

def status_code
    @status_code
end

#to_sObject



267
268
269
# File 'lib/twilio-ruby/rest/bulkexports/v1/export/day.rb', line 267

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