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.
2584 2585 2586 2587 |
# File 'lib/basecamp/generated/types.rb', line 2584 def initialize(data = {}) @name = data["name"] @description = data["description"] end |
Instance Attribute Details
#description ⇒ Object
Returns the value of attribute description.
2577 2578 2579 |
# File 'lib/basecamp/generated/types.rb', line 2577 def description @description end |
#name ⇒ Object
Returns the value of attribute name.
2577 2578 2579 |
# File 'lib/basecamp/generated/types.rb', line 2577 def name @name end |
Class Method Details
.required_fields ⇒ Array<Symbol>
2580 2581 2582 |
# File 'lib/basecamp/generated/types.rb', line 2580 def self.required_fields %i[name].freeze end |
Instance Method Details
#to_h ⇒ Object
2589 2590 2591 2592 2593 2594 |
# File 'lib/basecamp/generated/types.rb', line 2589 def to_h { "name" => @name, "description" => @description, }.compact end |
#to_json(*args) ⇒ Object
2596 2597 2598 |
# File 'lib/basecamp/generated/types.rb', line 2596 def to_json(*args) to_h.to_json(*args) end |