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.
1820 1821 1822 |
# File 'lib/basecamp/generated/types.rb', line 1820 def initialize(data = {}) @description = data["description"] end |
Instance Attribute Details
#description ⇒ Object
Returns the value of attribute description.
1818 1819 1820 |
# File 'lib/basecamp/generated/types.rb', line 1818 def description @description end |
Instance Method Details
#to_h ⇒ Object
1824 1825 1826 1827 1828 |
# File 'lib/basecamp/generated/types.rb', line 1824 def to_h { "description" => @description, }.compact end |
#to_json(*args) ⇒ Object
1830 1831 1832 |
# File 'lib/basecamp/generated/types.rb', line 1830 def to_json(*args) to_h.to_json(*args) end |