Class: Twilio::REST::Content::V1::ContentList::TwilioSchedule
- Inherits:
-
Object
- Object
- Twilio::REST::Content::V1::ContentList::TwilioSchedule
- Defined in:
- lib/twilio-ruby/rest/content/v1/content.rb
Instance Attribute Summary collapse
Instance Method Summary collapse
-
#initialize(payload) ⇒ TwilioSchedule
constructor
A new instance of TwilioSchedule.
- #to_json(options = {}) ⇒ Object
Constructor Details
#initialize(payload) ⇒ TwilioSchedule
Returns a new instance of TwilioSchedule.
464 465 466 467 468 |
# File 'lib/twilio-ruby/rest/content/v1/content.rb', line 464 def initialize(payload) @id = payload["id"] @title = payload["title"] @time_slots = payload["time_slots"] end |
Instance Attribute Details
#id ⇒ Object
463 464 465 |
# File 'lib/twilio-ruby/rest/content/v1/content.rb', line 463 def id @id end |
#time_slots ⇒ Object
463 464 465 |
# File 'lib/twilio-ruby/rest/content/v1/content.rb', line 463 def time_slots @time_slots end |
#title ⇒ Object
463 464 465 |
# File 'lib/twilio-ruby/rest/content/v1/content.rb', line 463 def title @title end |
Instance Method Details
#to_json(options = {}) ⇒ Object
469 470 471 472 473 474 475 |
# File 'lib/twilio-ruby/rest/content/v1/content.rb', line 469 def to_json( = {}) { "id": @id, "title": @title, "timeSlots": @time_slots, }.to_json() end |