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.
2808 2809 2810 |
# File 'lib/basecamp/generated/types.rb', line 2808 def initialize(data = {}) @content = data["content"] end |
Instance Attribute Details
#content ⇒ Object
Returns the value of attribute content.
2801 2802 2803 |
# File 'lib/basecamp/generated/types.rb', line 2801 def content @content end |
Class Method Details
.required_fields ⇒ Array<Symbol>
2804 2805 2806 |
# File 'lib/basecamp/generated/types.rb', line 2804 def self.required_fields %i[content].freeze end |
Instance Method Details
#to_h ⇒ Object
2812 2813 2814 2815 2816 |
# File 'lib/basecamp/generated/types.rb', line 2812 def to_h { "content" => @content, }.compact end |
#to_json(*args) ⇒ Object
2818 2819 2820 |
# File 'lib/basecamp/generated/types.rb', line 2818 def to_json(*args) to_h.to_json(*args) end |