Class: Basecamp::Types::QuestionAnswerPayload
- Inherits:
-
Object
- Object
- Basecamp::Types::QuestionAnswerPayload
- Includes:
- TypeHelpers
- Defined in:
- lib/basecamp/generated/types.rb
Overview
QuestionAnswerPayload
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 = {}) ⇒ QuestionAnswerPayload
constructor
A new instance of QuestionAnswerPayload.
- #to_h ⇒ Object
- #to_json(*args) ⇒ Object
Constructor Details
#initialize(data = {}) ⇒ QuestionAnswerPayload
Returns a new instance of QuestionAnswerPayload.
2739 2740 2741 2742 |
# File 'lib/basecamp/generated/types.rb', line 2739 def initialize(data = {}) @content = data["content"] @group_on = data["group_on"] end |
Instance Attribute Details
#content ⇒ Object
Returns the value of attribute content.
2732 2733 2734 |
# File 'lib/basecamp/generated/types.rb', line 2732 def content @content end |
#group_on ⇒ Object
Returns the value of attribute group_on.
2732 2733 2734 |
# File 'lib/basecamp/generated/types.rb', line 2732 def group_on @group_on end |
Class Method Details
.required_fields ⇒ Array<Symbol>
2735 2736 2737 |
# File 'lib/basecamp/generated/types.rb', line 2735 def self.required_fields %i[content].freeze end |
Instance Method Details
#to_h ⇒ Object
2744 2745 2746 2747 2748 2749 |
# File 'lib/basecamp/generated/types.rb', line 2744 def to_h { "content" => @content, "group_on" => @group_on, }.compact end |
#to_json(*args) ⇒ Object
2751 2752 2753 |
# File 'lib/basecamp/generated/types.rb', line 2751 def to_json(*args) to_h.to_json(*args) end |