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.
3060 3061 3062 3063 |
# File 'lib/basecamp/generated/types.rb', line 3060 def initialize(data = {}) @name = data["name"] @description = data["description"] end |
Instance Attribute Details
#description ⇒ Object
Returns the value of attribute description.
3053 3054 3055 |
# File 'lib/basecamp/generated/types.rb', line 3053 def description @description end |
#name ⇒ Object
Returns the value of attribute name.
3053 3054 3055 |
# File 'lib/basecamp/generated/types.rb', line 3053 def name @name end |
Class Method Details
.required_fields ⇒ Array<Symbol>
3056 3057 3058 |
# File 'lib/basecamp/generated/types.rb', line 3056 def self.required_fields %i[name].freeze end |
Instance Method Details
#to_h ⇒ Object
3065 3066 3067 3068 3069 3070 |
# File 'lib/basecamp/generated/types.rb', line 3065 def to_h { "name" => @name, "description" => @description, }.compact end |
#to_json(*args) ⇒ Object
3072 3073 3074 |
# File 'lib/basecamp/generated/types.rb', line 3072 def to_json(*args) to_h.to_json(*args) end |