Class: Basecamp::Types::QuestionReminder
- Inherits:
-
Object
- Object
- Basecamp::Types::QuestionReminder
- Includes:
- TypeHelpers
- Defined in:
- lib/basecamp/generated/types.rb
Overview
QuestionReminder
Instance Attribute Summary collapse
-
#group_on ⇒ Object
Returns the value of attribute group_on.
-
#question ⇒ Object
Returns the value of attribute question.
-
#remind_at ⇒ Object
Returns the value of attribute remind_at.
-
#reminder_id ⇒ Object
Returns the value of attribute reminder_id.
Instance Method Summary collapse
-
#initialize(data = {}) ⇒ QuestionReminder
constructor
A new instance of QuestionReminder.
- #to_h ⇒ Object
- #to_json(*args) ⇒ Object
Constructor Details
#initialize(data = {}) ⇒ QuestionReminder
Returns a new instance of QuestionReminder.
2788 2789 2790 2791 2792 2793 |
# File 'lib/basecamp/generated/types.rb', line 2788 def initialize(data = {}) @group_on = data["group_on"] @question = parse_type(data["question"], "Question") @remind_at = parse_datetime(data["remind_at"]) @reminder_id = parse_integer(data["reminder_id"]) end |
Instance Attribute Details
#group_on ⇒ Object
Returns the value of attribute group_on.
2786 2787 2788 |
# File 'lib/basecamp/generated/types.rb', line 2786 def group_on @group_on end |
#question ⇒ Object
Returns the value of attribute question.
2786 2787 2788 |
# File 'lib/basecamp/generated/types.rb', line 2786 def question @question end |
#remind_at ⇒ Object
Returns the value of attribute remind_at.
2786 2787 2788 |
# File 'lib/basecamp/generated/types.rb', line 2786 def remind_at @remind_at end |
#reminder_id ⇒ Object
Returns the value of attribute reminder_id.
2786 2787 2788 |
# File 'lib/basecamp/generated/types.rb', line 2786 def reminder_id @reminder_id end |
Instance Method Details
#to_h ⇒ Object
2795 2796 2797 2798 2799 2800 2801 2802 |
# File 'lib/basecamp/generated/types.rb', line 2795 def to_h { "group_on" => @group_on, "question" => @question, "remind_at" => @remind_at, "reminder_id" => @reminder_id, }.compact end |
#to_json(*args) ⇒ Object
2804 2805 2806 |
# File 'lib/basecamp/generated/types.rb', line 2804 def to_json(*args) to_h.to_json(*args) end |