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.
4239 4240 4241 4242 4243 4244 4245 4246 4247 |
# File 'lib/basecamp/generated/types.rb', line 4239 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.
4237 4238 4239 |
# File 'lib/basecamp/generated/types.rb', line 4237 def copy @copy end |
#created_at ⇒ Object
Returns the value of attribute created_at.
4237 4238 4239 |
# File 'lib/basecamp/generated/types.rb', line 4237 def created_at @created_at end |
#creator ⇒ Object
Returns the value of attribute creator.
4237 4238 4239 |
# File 'lib/basecamp/generated/types.rb', line 4237 def creator @creator end |
#details ⇒ Object
Returns the value of attribute details.
4237 4238 4239 |
# File 'lib/basecamp/generated/types.rb', line 4237 def details @details end |
#id ⇒ Object
Returns the value of attribute id.
4237 4238 4239 |
# File 'lib/basecamp/generated/types.rb', line 4237 def id @id end |
#kind ⇒ Object
Returns the value of attribute kind.
4237 4238 4239 |
# File 'lib/basecamp/generated/types.rb', line 4237 def kind @kind end |
#recording ⇒ Object
Returns the value of attribute recording.
4237 4238 4239 |
# File 'lib/basecamp/generated/types.rb', line 4237 def recording @recording end |
Instance Method Details
#to_h ⇒ Object
4249 4250 4251 4252 4253 4254 4255 4256 4257 4258 4259 |
# File 'lib/basecamp/generated/types.rb', line 4249 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
4261 4262 4263 |
# File 'lib/basecamp/generated/types.rb', line 4261 def to_json(*args) to_h.to_json(*args) end |