Class: Basecamp::Types::WebhookEvent
- Inherits:
-
Object
- Object
- Basecamp::Types::WebhookEvent
- Includes:
- TypeHelpers
- Defined in:
- lib/basecamp/generated/types.rb
Overview
WebhookEvent
Instance Attribute Summary collapse
-
#copy ⇒ Object
Returns the value of attribute copy.
-
#created_at ⇒ Object
Returns the value of attribute created_at.
-
#creator ⇒ Object
Returns the value of attribute creator.
-
#details ⇒ Object
Returns the value of attribute details.
-
#id ⇒ Object
Returns the value of attribute id.
-
#kind ⇒ Object
Returns the value of attribute kind.
-
#recording ⇒ Object
Returns the value of attribute recording.
Instance Method Summary collapse
-
#initialize(data = {}) ⇒ WebhookEvent
constructor
A new instance of WebhookEvent.
- #to_h ⇒ Object
- #to_json(*args) ⇒ Object
Constructor Details
#initialize(data = {}) ⇒ WebhookEvent
Returns a new instance of WebhookEvent.
5295 5296 5297 5298 5299 5300 5301 5302 5303 |
# File 'lib/basecamp/generated/types.rb', line 5295 def initialize(data = {}) @copy = parse_type(data["copy"], "WebhookCopy") @created_at = parse_datetime(data["created_at"]) @creator = parse_type(data["creator"], "Person") @details = data["details"] @id = parse_integer(data["id"]) @kind = data["kind"] @recording = parse_type(data["recording"], "Recording") end |
Instance Attribute Details
#copy ⇒ Object
Returns the value of attribute copy.
5293 5294 5295 |
# File 'lib/basecamp/generated/types.rb', line 5293 def copy @copy end |
#created_at ⇒ Object
Returns the value of attribute created_at.
5293 5294 5295 |
# File 'lib/basecamp/generated/types.rb', line 5293 def created_at @created_at end |
#creator ⇒ Object
Returns the value of attribute creator.
5293 5294 5295 |
# File 'lib/basecamp/generated/types.rb', line 5293 def creator @creator end |
#details ⇒ Object
Returns the value of attribute details.
5293 5294 5295 |
# File 'lib/basecamp/generated/types.rb', line 5293 def details @details end |
#id ⇒ Object
Returns the value of attribute id.
5293 5294 5295 |
# File 'lib/basecamp/generated/types.rb', line 5293 def id @id end |
#kind ⇒ Object
Returns the value of attribute kind.
5293 5294 5295 |
# File 'lib/basecamp/generated/types.rb', line 5293 def kind @kind end |
#recording ⇒ Object
Returns the value of attribute recording.
5293 5294 5295 |
# File 'lib/basecamp/generated/types.rb', line 5293 def recording @recording end |
Instance Method Details
#to_h ⇒ Object
5305 5306 5307 5308 5309 5310 5311 5312 5313 5314 5315 |
# File 'lib/basecamp/generated/types.rb', line 5305 def to_h { "copy" => @copy, "created_at" => @created_at, "creator" => @creator, "details" => @details, "id" => @id, "kind" => @kind, "recording" => @recording, }.compact end |
#to_json(*args) ⇒ Object
5317 5318 5319 |
# File 'lib/basecamp/generated/types.rb', line 5317 def to_json(*args) to_h.to_json(*args) end |