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.
2748 2749 2750 2751 |
# File 'lib/basecamp/generated/types.rb', line 2748 def initialize(data = {}) @name = data["name"] @description = data["description"] end |
Instance Attribute Details
#description ⇒ Object
Returns the value of attribute description.
2741 2742 2743 |
# File 'lib/basecamp/generated/types.rb', line 2741 def description @description end |
#name ⇒ Object
Returns the value of attribute name.
2741 2742 2743 |
# File 'lib/basecamp/generated/types.rb', line 2741 def name @name end |
Class Method Details
.required_fields ⇒ Array<Symbol>
2744 2745 2746 |
# File 'lib/basecamp/generated/types.rb', line 2744 def self.required_fields %i[name].freeze end |
Instance Method Details
#to_h ⇒ Object
2753 2754 2755 2756 2757 2758 |
# File 'lib/basecamp/generated/types.rb', line 2753 def to_h { "name" => @name, "description" => @description, }.compact end |
#to_json(*args) ⇒ Object
2760 2761 2762 |
# File 'lib/basecamp/generated/types.rb', line 2760 def to_json(*args) to_h.to_json(*args) end |