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.



4536
4537
4538
# File 'lib/basecamp/generated/types.rb', line 4536

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

Instance Attribute Details

#idObject

Returns the value of attribute id.



4534
4535
4536
# File 'lib/basecamp/generated/types.rb', line 4534

def id
  @id
end

Instance Method Details

#to_hObject



4540
4541
4542
4543
4544
# File 'lib/basecamp/generated/types.rb', line 4540

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

#to_json(*args) ⇒ Object



4546
4547
4548
# File 'lib/basecamp/generated/types.rb', line 4546

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