Class: Basecamp::Types::ProjectConstructionAttributes
- Inherits:
-
Object
- Object
- Basecamp::Types::ProjectConstructionAttributes
- Includes:
- TypeHelpers
- Defined in:
- lib/basecamp/generated/types.rb
Overview
ProjectConstructionAttributes
Instance Attribute Summary collapse
-
#description ⇒ Object
Returns the value of attribute description.
-
#name ⇒ Object
Returns the value of attribute name.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(data = {}) ⇒ ProjectConstructionAttributes
constructor
A new instance of ProjectConstructionAttributes.
- #to_h ⇒ Object
- #to_json(*args) ⇒ Object
Constructor Details
#initialize(data = {}) ⇒ ProjectConstructionAttributes
Returns a new instance of ProjectConstructionAttributes.
2781 2782 2783 2784 |
# File 'lib/basecamp/generated/types.rb', line 2781 def initialize(data = {}) @name = data["name"] @description = data["description"] end |
Instance Attribute Details
#description ⇒ Object
Returns the value of attribute description.
2774 2775 2776 |
# File 'lib/basecamp/generated/types.rb', line 2774 def description @description end |
#name ⇒ Object
Returns the value of attribute name.
2774 2775 2776 |
# File 'lib/basecamp/generated/types.rb', line 2774 def name @name end |
Class Method Details
.required_fields ⇒ Array<Symbol>
2777 2778 2779 |
# File 'lib/basecamp/generated/types.rb', line 2777 def self.required_fields %i[name].freeze end |
Instance Method Details
#to_h ⇒ Object
2786 2787 2788 2789 2790 2791 |
# File 'lib/basecamp/generated/types.rb', line 2786 def to_h { "name" => @name, "description" => @description, }.compact end |
#to_json(*args) ⇒ Object
2793 2794 2795 |
# File 'lib/basecamp/generated/types.rb', line 2793 def to_json(*args) to_h.to_json(*args) end |