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.
4907 4908 4909 4910 4911 4912 4913 4914 4915 |
# File 'lib/basecamp/generated/types.rb', line 4907 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.
4905 4906 4907 |
# File 'lib/basecamp/generated/types.rb', line 4905 def copy @copy end |
#created_at ⇒ Object
Returns the value of attribute created_at.
4905 4906 4907 |
# File 'lib/basecamp/generated/types.rb', line 4905 def created_at @created_at end |
#creator ⇒ Object
Returns the value of attribute creator.
4905 4906 4907 |
# File 'lib/basecamp/generated/types.rb', line 4905 def creator @creator end |
#details ⇒ Object
Returns the value of attribute details.
4905 4906 4907 |
# File 'lib/basecamp/generated/types.rb', line 4905 def details @details end |
#id ⇒ Object
Returns the value of attribute id.
4905 4906 4907 |
# File 'lib/basecamp/generated/types.rb', line 4905 def id @id end |
#kind ⇒ Object
Returns the value of attribute kind.
4905 4906 4907 |
# File 'lib/basecamp/generated/types.rb', line 4905 def kind @kind end |
#recording ⇒ Object
Returns the value of attribute recording.
4905 4906 4907 |
# File 'lib/basecamp/generated/types.rb', line 4905 def recording @recording end |
Instance Method Details
#to_h ⇒ Object
4917 4918 4919 4920 4921 4922 4923 4924 4925 4926 4927 |
# File 'lib/basecamp/generated/types.rb', line 4917 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
4929 4930 4931 |
# File 'lib/basecamp/generated/types.rb', line 4929 def to_json(*args) to_h.to_json(*args) end |