Class: Twilio::REST::Content::V1::ContentList::TwilioSchedule

Inherits:
Object
  • Object
show all
Defined in:
lib/twilio-ruby/rest/content/v1/content.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(payload) ⇒ TwilioSchedule

Returns a new instance of TwilioSchedule.



452
453
454
455
456
# File 'lib/twilio-ruby/rest/content/v1/content.rb', line 452

def initialize(payload)
        @id = payload["id"]
        @title = payload["title"]
        @time_slots = payload["time_slots"]
end

Instance Attribute Details

#idObject

Parameters:



451
452
453
# File 'lib/twilio-ruby/rest/content/v1/content.rb', line 451

def id
  @id
end

#time_slotsObject

Parameters:



451
452
453
# File 'lib/twilio-ruby/rest/content/v1/content.rb', line 451

def time_slots
  @time_slots
end

#titleObject

Parameters:



451
452
453
# File 'lib/twilio-ruby/rest/content/v1/content.rb', line 451

def title
  @title
end

Instance Method Details

#to_json(options = {}) ⇒ Object



457
458
459
460
461
462
463
# File 'lib/twilio-ruby/rest/content/v1/content.rb', line 457

def to_json(options = {})
{
        "id": @id,
        "title": @title,
        "timeSlots": @time_slots,
}.to_json(options)
end