Class: Basecamp::Types::GaugeNeedleUpdatePayload
- Inherits:
-
Object
- Object
- Basecamp::Types::GaugeNeedleUpdatePayload
- Includes:
- TypeHelpers
- Defined in:
- lib/basecamp/generated/types.rb
Overview
GaugeNeedleUpdatePayload
Instance Attribute Summary collapse
-
#description ⇒ Object
Returns the value of attribute description.
Instance Method Summary collapse
-
#initialize(data = {}) ⇒ GaugeNeedleUpdatePayload
constructor
A new instance of GaugeNeedleUpdatePayload.
- #to_h ⇒ Object
- #to_json(*args) ⇒ Object
Constructor Details
#initialize(data = {}) ⇒ GaugeNeedleUpdatePayload
Returns a new instance of GaugeNeedleUpdatePayload.
1623 1624 1625 |
# File 'lib/basecamp/generated/types.rb', line 1623 def initialize(data = {}) @description = data["description"] end |
Instance Attribute Details
#description ⇒ Object
Returns the value of attribute description.
1621 1622 1623 |
# File 'lib/basecamp/generated/types.rb', line 1621 def description @description end |
Instance Method Details
#to_h ⇒ Object
1627 1628 1629 1630 1631 |
# File 'lib/basecamp/generated/types.rb', line 1627 def to_h { "description" => @description, }.compact end |
#to_json(*args) ⇒ Object
1633 1634 1635 |
# File 'lib/basecamp/generated/types.rb', line 1633 def to_json(*args) to_h.to_json(*args) end |