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.
3289 3290 3291 3292 |
# File 'lib/basecamp/generated/types.rb', line 3289 def initialize(data = {}) @name = data["name"] @description = data["description"] end |
Instance Attribute Details
#description ⇒ Object
Returns the value of attribute description.
3282 3283 3284 |
# File 'lib/basecamp/generated/types.rb', line 3282 def description @description end |
#name ⇒ Object
Returns the value of attribute name.
3282 3283 3284 |
# File 'lib/basecamp/generated/types.rb', line 3282 def name @name end |
Class Method Details
.required_fields ⇒ Array<Symbol>
3285 3286 3287 |
# File 'lib/basecamp/generated/types.rb', line 3285 def self.required_fields %i[name].freeze end |
Instance Method Details
#to_h ⇒ Object
3294 3295 3296 3297 3298 3299 |
# File 'lib/basecamp/generated/types.rb', line 3294 def to_h { "name" => @name, "description" => @description, }.compact end |
#to_json(*args) ⇒ Object
3301 3302 3303 |
# File 'lib/basecamp/generated/types.rb', line 3301 def to_json(*args) to_h.to_json(*args) end |