Class: Basecamp::Types::QuestionAnswerUpdatePayload
- Inherits:
-
Object
- Object
- Basecamp::Types::QuestionAnswerUpdatePayload
- Includes:
- TypeHelpers
- Defined in:
- lib/basecamp/generated/types.rb
Overview
QuestionAnswerUpdatePayload
Instance Attribute Summary collapse
-
#content ⇒ Object
Returns the value of attribute content.
-
#group_on ⇒ Object
Returns the value of attribute group_on.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(data = {}) ⇒ QuestionAnswerUpdatePayload
constructor
A new instance of QuestionAnswerUpdatePayload.
- #to_h ⇒ Object
- #to_json(*args) ⇒ Object
Constructor Details
#initialize(data = {}) ⇒ QuestionAnswerUpdatePayload
Returns a new instance of QuestionAnswerUpdatePayload.
2766 2767 2768 2769 |
# File 'lib/basecamp/generated/types.rb', line 2766 def initialize(data = {}) @content = data["content"] @group_on = data["group_on"] end |
Instance Attribute Details
#content ⇒ Object
Returns the value of attribute content.
2759 2760 2761 |
# File 'lib/basecamp/generated/types.rb', line 2759 def content @content end |
#group_on ⇒ Object
Returns the value of attribute group_on.
2759 2760 2761 |
# File 'lib/basecamp/generated/types.rb', line 2759 def group_on @group_on end |
Class Method Details
.required_fields ⇒ Array<Symbol>
2762 2763 2764 |
# File 'lib/basecamp/generated/types.rb', line 2762 def self.required_fields %i[content].freeze end |
Instance Method Details
#to_h ⇒ Object
2771 2772 2773 2774 2775 2776 |
# File 'lib/basecamp/generated/types.rb', line 2771 def to_h { "content" => @content, "group_on" => @group_on, }.compact end |
#to_json(*args) ⇒ Object
2778 2779 2780 |
# File 'lib/basecamp/generated/types.rb', line 2778 def to_json(*args) to_h.to_json(*args) end |