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.
4595 4596 4597 4598 4599 4600 4601 4602 4603 |
# File 'lib/basecamp/generated/types.rb', line 4595 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.
4593 4594 4595 |
# File 'lib/basecamp/generated/types.rb', line 4593 def copy @copy end |
#created_at ⇒ Object
Returns the value of attribute created_at.
4593 4594 4595 |
# File 'lib/basecamp/generated/types.rb', line 4593 def created_at @created_at end |
#creator ⇒ Object
Returns the value of attribute creator.
4593 4594 4595 |
# File 'lib/basecamp/generated/types.rb', line 4593 def creator @creator end |
#details ⇒ Object
Returns the value of attribute details.
4593 4594 4595 |
# File 'lib/basecamp/generated/types.rb', line 4593 def details @details end |
#id ⇒ Object
Returns the value of attribute id.
4593 4594 4595 |
# File 'lib/basecamp/generated/types.rb', line 4593 def id @id end |
#kind ⇒ Object
Returns the value of attribute kind.
4593 4594 4595 |
# File 'lib/basecamp/generated/types.rb', line 4593 def kind @kind end |
#recording ⇒ Object
Returns the value of attribute recording.
4593 4594 4595 |
# File 'lib/basecamp/generated/types.rb', line 4593 def recording @recording end |
Instance Method Details
#to_h ⇒ Object
4605 4606 4607 4608 4609 4610 4611 4612 4613 4614 4615 |
# File 'lib/basecamp/generated/types.rb', line 4605 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
4617 4618 4619 |
# File 'lib/basecamp/generated/types.rb', line 4617 def to_json(*args) to_h.to_json(*args) end |