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.
1787 1788 1789 |
# File 'lib/basecamp/generated/types.rb', line 1787 def initialize(data = {}) @description = data["description"] end |
Instance Attribute Details
#description ⇒ Object
Returns the value of attribute description.
1785 1786 1787 |
# File 'lib/basecamp/generated/types.rb', line 1785 def description @description end |
Instance Method Details
#to_h ⇒ Object
1791 1792 1793 1794 1795 |
# File 'lib/basecamp/generated/types.rb', line 1791 def to_h { "description" => @description, }.compact end |
#to_json(*args) ⇒ Object
1797 1798 1799 |
# File 'lib/basecamp/generated/types.rb', line 1797 def to_json(*args) to_h.to_json(*args) end |