Class: Basecamp::Types::WebhookCopyBucket
- Inherits:
-
Object
- Object
- Basecamp::Types::WebhookCopyBucket
- Includes:
- TypeHelpers
- Defined in:
- lib/basecamp/generated/types.rb
Overview
WebhookCopyBucket
Instance Attribute Summary collapse
-
#id ⇒ Object
Returns the value of attribute id.
Instance Method Summary collapse
-
#initialize(data = {}) ⇒ WebhookCopyBucket
constructor
A new instance of WebhookCopyBucket.
- #to_h ⇒ Object
- #to_json(*args) ⇒ Object
Constructor Details
#initialize(data = {}) ⇒ WebhookCopyBucket
Returns a new instance of WebhookCopyBucket.
4147 4148 4149 |
# File 'lib/basecamp/generated/types.rb', line 4147 def initialize(data = {}) @id = parse_integer(data["id"]) end |
Instance Attribute Details
#id ⇒ Object
Returns the value of attribute id.
4145 4146 4147 |
# File 'lib/basecamp/generated/types.rb', line 4145 def id @id end |
Instance Method Details
#to_h ⇒ Object
4151 4152 4153 4154 4155 |
# File 'lib/basecamp/generated/types.rb', line 4151 def to_h { "id" => @id, }.compact end |
#to_json(*args) ⇒ Object
4157 4158 4159 |
# File 'lib/basecamp/generated/types.rb', line 4157 def to_json(*args) to_h.to_json(*args) end |