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.



242
243
244
245
# File 'lib/twilio-ruby/rest/bulkexports/v1/export/day.rb', line 242

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

Instance Method Details

#dayObject



247
248
249
# File 'lib/twilio-ruby/rest/bulkexports/v1/export/day.rb', line 247

def day
    @day_instance
end

#headersObject



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

def headers
    @headers
end

#status_codeObject



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

def status_code
    @status_code
end

#to_sObject



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

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