Class: Basecamp::Types::WebhookDeliveryRequest
- Inherits:
-
Object
- Object
- Basecamp::Types::WebhookDeliveryRequest
- Includes:
- TypeHelpers
- Defined in:
- lib/basecamp/generated/types.rb
Overview
WebhookDeliveryRequest
Instance Attribute Summary collapse
-
#body ⇒ Object
Returns the value of attribute body.
-
#headers ⇒ Object
Returns the value of attribute headers.
Instance Method Summary collapse
-
#initialize(data = {}) ⇒ WebhookDeliveryRequest
constructor
A new instance of WebhookDeliveryRequest.
- #to_h ⇒ Object
- #to_json(*args) ⇒ Object
Constructor Details
#initialize(data = {}) ⇒ WebhookDeliveryRequest
Returns a new instance of WebhookDeliveryRequest.
4193 4194 4195 4196 |
# File 'lib/basecamp/generated/types.rb', line 4193 def initialize(data = {}) @body = parse_type(data["body"], "WebhookEvent") @headers = parse_type(data["headers"], "WebhookHeadersMap") end |
Instance Attribute Details
#body ⇒ Object
Returns the value of attribute body.
4191 4192 4193 |
# File 'lib/basecamp/generated/types.rb', line 4191 def body @body end |
#headers ⇒ Object
Returns the value of attribute headers.
4191 4192 4193 |
# File 'lib/basecamp/generated/types.rb', line 4191 def headers @headers end |
Instance Method Details
#to_h ⇒ Object
4198 4199 4200 4201 4202 4203 |
# File 'lib/basecamp/generated/types.rb', line 4198 def to_h { "body" => @body, "headers" => @headers, }.compact end |
#to_json(*args) ⇒ Object
4205 4206 4207 |
# File 'lib/basecamp/generated/types.rb', line 4205 def to_json(*args) to_h.to_json(*args) end |