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.



4815
4816
4817
# File 'lib/basecamp/generated/types.rb', line 4815

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

Instance Attribute Details

#idObject

Returns the value of attribute id.



4813
4814
4815
# File 'lib/basecamp/generated/types.rb', line 4813

def id
  @id
end

Instance Method Details

#to_hObject



4819
4820
4821
4822
4823
# File 'lib/basecamp/generated/types.rb', line 4819

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

#to_json(*args) ⇒ Object



4825
4826
4827
# File 'lib/basecamp/generated/types.rb', line 4825

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