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.
2035 2036 2037 |
# File 'lib/basecamp/generated/types.rb', line 2035 def initialize(data = {}) @description = data["description"] end |
Instance Attribute Details
#description ⇒ Object
Returns the value of attribute description.
2033 2034 2035 |
# File 'lib/basecamp/generated/types.rb', line 2033 def description @description end |
Instance Method Details
#to_h ⇒ Object
2039 2040 2041 2042 2043 |
# File 'lib/basecamp/generated/types.rb', line 2039 def to_h { "description" => @description, }.compact end |
#to_json(*args) ⇒ Object
2045 2046 2047 |
# File 'lib/basecamp/generated/types.rb', line 2045 def to_json(*args) to_h.to_json(*args) end |