Class: Basecamp::Types::MyNoteAttributes
- Inherits:
-
Object
- Object
- Basecamp::Types::MyNoteAttributes
- Includes:
- TypeHelpers
- Defined in:
- lib/basecamp/generated/types.rb
Overview
MyNoteAttributes
Instance Attribute Summary collapse
-
#content ⇒ Object
Returns the value of attribute content.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(data = {}) ⇒ MyNoteAttributes
constructor
A new instance of MyNoteAttributes.
- #to_h ⇒ Object
- #to_json(*args) ⇒ Object
Constructor Details
#initialize(data = {}) ⇒ MyNoteAttributes
Returns a new instance of MyNoteAttributes.
2579 2580 2581 |
# File 'lib/basecamp/generated/types.rb', line 2579 def initialize(data = {}) @content = data["content"] end |
Instance Attribute Details
#content ⇒ Object
Returns the value of attribute content.
2572 2573 2574 |
# File 'lib/basecamp/generated/types.rb', line 2572 def content @content end |
Class Method Details
.required_fields ⇒ Array<Symbol>
2575 2576 2577 |
# File 'lib/basecamp/generated/types.rb', line 2575 def self.required_fields %i[content].freeze end |
Instance Method Details
#to_h ⇒ Object
2583 2584 2585 2586 2587 |
# File 'lib/basecamp/generated/types.rb', line 2583 def to_h { "content" => @content, }.compact end |
#to_json(*args) ⇒ Object
2589 2590 2591 |
# File 'lib/basecamp/generated/types.rb', line 2589 def to_json(*args) to_h.to_json(*args) end |