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

Inherits:
Object
  • Object
show all
Defined in:
lib/twilio-ruby/rest/content/v1/content.rb,
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.



489
490
491
492
493
# File 'lib/twilio-ruby/rest/content/v1/content.rb', line 489

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

Instance Attribute Details

#id ⇒ Object

Parameters:



488
489
490
# File 'lib/twilio-ruby/rest/content/v1/content.rb', line 488

def id
  @id
end

#time_slots ⇒ Object

Parameters:



488
489
490
# File 'lib/twilio-ruby/rest/content/v1/content.rb', line 488

def time_slots
  @time_slots
end

#title ⇒ Object

Parameters:



488
489
490
# File 'lib/twilio-ruby/rest/content/v1/content.rb', line 488

def title
  @title
end

Instance Method Details

#to_json(options = {}) ⇒ Object



494
495
496
497
498
499
500
# File 'lib/twilio-ruby/rest/content/v1/content.rb', line 494

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