Class: Basecamp::Types::WebhookCopyBucket

Inherits:
Object
  • Object
show all
Includes:
TypeHelpers
Defined in:
lib/basecamp/generated/types.rb

Overview

WebhookCopyBucket

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(data = {}) ⇒ WebhookCopyBucket

Returns a new instance of WebhookCopyBucket.



5203
5204
5205
# File 'lib/basecamp/generated/types.rb', line 5203

def initialize(data = {})
  @id = parse_integer(data["id"])
end

Instance Attribute Details

#idObject

Returns the value of attribute id.



5201
5202
5203
# File 'lib/basecamp/generated/types.rb', line 5201

def id
  @id
end

Instance Method Details

#to_hObject



5207
5208
5209
5210
5211
# File 'lib/basecamp/generated/types.rb', line 5207

def to_h
  {
    "id" => @id,
  }.compact
end

#to_json(*args) ⇒ Object



5213
5214
5215
# File 'lib/basecamp/generated/types.rb', line 5213

def to_json(*args)
  to_h.to_json(*args)
end