Class: Basecamp::Types::WebhookDeliveryResponse
- Inherits:
-
Object
- Object
- Basecamp::Types::WebhookDeliveryResponse
- Includes:
- TypeHelpers
- Defined in:
- lib/basecamp/generated/types.rb
Overview
WebhookDeliveryResponse
Instance Attribute Summary collapse
-
#code ⇒ Object
Returns the value of attribute code.
-
#headers ⇒ Object
Returns the value of attribute headers.
-
#message ⇒ Object
Returns the value of attribute message.
Instance Method Summary collapse
-
#initialize(data = {}) ⇒ WebhookDeliveryResponse
constructor
A new instance of WebhookDeliveryResponse.
- #to_h ⇒ Object
- #to_json(*args) ⇒ Object
Constructor Details
#initialize(data = {}) ⇒ WebhookDeliveryResponse
Returns a new instance of WebhookDeliveryResponse.
4215 4216 4217 4218 4219 |
# File 'lib/basecamp/generated/types.rb', line 4215 def initialize(data = {}) @code = parse_integer(data["code"]) @headers = parse_type(data["headers"], "WebhookHeadersMap") @message = data["message"] end |
Instance Attribute Details
#code ⇒ Object
Returns the value of attribute code.
4213 4214 4215 |
# File 'lib/basecamp/generated/types.rb', line 4213 def code @code end |
#headers ⇒ Object
Returns the value of attribute headers.
4213 4214 4215 |
# File 'lib/basecamp/generated/types.rb', line 4213 def headers @headers end |
#message ⇒ Object
Returns the value of attribute message.
4213 4214 4215 |
# File 'lib/basecamp/generated/types.rb', line 4213 def @message end |
Instance Method Details
#to_h ⇒ Object
4221 4222 4223 4224 4225 4226 4227 |
# File 'lib/basecamp/generated/types.rb', line 4221 def to_h { "code" => @code, "headers" => @headers, "message" => @message, }.compact end |
#to_json(*args) ⇒ Object
4229 4230 4231 |
# File 'lib/basecamp/generated/types.rb', line 4229 def to_json(*args) to_h.to_json(*args) end |