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.
4628 4629 4630 4631 4632 4633 4634 4635 4636 |
# File 'lib/basecamp/generated/types.rb', line 4628 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.
4626 4627 4628 |
# File 'lib/basecamp/generated/types.rb', line 4626 def copy @copy end |
#created_at ⇒ Object
Returns the value of attribute created_at.
4626 4627 4628 |
# File 'lib/basecamp/generated/types.rb', line 4626 def created_at @created_at end |
#creator ⇒ Object
Returns the value of attribute creator.
4626 4627 4628 |
# File 'lib/basecamp/generated/types.rb', line 4626 def creator @creator end |
#details ⇒ Object
Returns the value of attribute details.
4626 4627 4628 |
# File 'lib/basecamp/generated/types.rb', line 4626 def details @details end |
#id ⇒ Object
Returns the value of attribute id.
4626 4627 4628 |
# File 'lib/basecamp/generated/types.rb', line 4626 def id @id end |
#kind ⇒ Object
Returns the value of attribute kind.
4626 4627 4628 |
# File 'lib/basecamp/generated/types.rb', line 4626 def kind @kind end |
#recording ⇒ Object
Returns the value of attribute recording.
4626 4627 4628 |
# File 'lib/basecamp/generated/types.rb', line 4626 def recording @recording end |
Instance Method Details
#to_h ⇒ Object
4638 4639 4640 4641 4642 4643 4644 4645 4646 4647 4648 |
# File 'lib/basecamp/generated/types.rb', line 4638 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
4650 4651 4652 |
# File 'lib/basecamp/generated/types.rb', line 4650 def to_json(*args) to_h.to_json(*args) end |