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.
2195 2196 2197 |
# File 'lib/basecamp/generated/types.rb', line 2195 def initialize(data = {}) @description = data["description"] end |
Instance Attribute Details
#description ⇒ Object
Returns the value of attribute description.
2193 2194 2195 |
# File 'lib/basecamp/generated/types.rb', line 2193 def description @description end |
Instance Method Details
#to_h ⇒ Object
2199 2200 2201 2202 2203 |
# File 'lib/basecamp/generated/types.rb', line 2199 def to_h { "description" => @description, }.compact end |
#to_json(*args) ⇒ Object
2205 2206 2207 |
# File 'lib/basecamp/generated/types.rb', line 2205 def to_json(*args) to_h.to_json(*args) end |