Class: Basecamp::Types::WebhookCopy
- Inherits:
-
Object
- Object
- Basecamp::Types::WebhookCopy
- Includes:
- TypeHelpers
- Defined in:
- lib/basecamp/generated/types.rb
Overview
WebhookCopy
Instance Attribute Summary collapse
-
#app_url ⇒ Object
Returns the value of attribute app_url.
-
#bucket ⇒ Object
Returns the value of attribute bucket.
-
#id ⇒ Object
Returns the value of attribute id.
-
#url ⇒ Object
Returns the value of attribute url.
Instance Method Summary collapse
-
#initialize(data = {}) ⇒ WebhookCopy
constructor
A new instance of WebhookCopy.
- #to_h ⇒ Object
- #to_json(*args) ⇒ Object
Constructor Details
#initialize(data = {}) ⇒ WebhookCopy
Returns a new instance of WebhookCopy.
5253 5254 5255 5256 5257 5258 |
# File 'lib/basecamp/generated/types.rb', line 5253 def initialize(data = {}) @app_url = data["app_url"] @bucket = parse_type(data["bucket"], "WebhookCopyBucket") @id = parse_integer(data["id"]) @url = data["url"] end |
Instance Attribute Details
#app_url ⇒ Object
Returns the value of attribute app_url.
5251 5252 5253 |
# File 'lib/basecamp/generated/types.rb', line 5251 def app_url @app_url end |
#bucket ⇒ Object
Returns the value of attribute bucket.
5251 5252 5253 |
# File 'lib/basecamp/generated/types.rb', line 5251 def bucket @bucket end |
#id ⇒ Object
Returns the value of attribute id.
5251 5252 5253 |
# File 'lib/basecamp/generated/types.rb', line 5251 def id @id end |
#url ⇒ Object
Returns the value of attribute url.
5251 5252 5253 |
# File 'lib/basecamp/generated/types.rb', line 5251 def url @url end |
Instance Method Details
#to_h ⇒ Object
5260 5261 5262 5263 5264 5265 5266 5267 |
# File 'lib/basecamp/generated/types.rb', line 5260 def to_h { "app_url" => @app_url, "bucket" => @bucket, "id" => @id, "url" => @url, }.compact end |
#to_json(*args) ⇒ Object
5269 5270 5271 |
# File 'lib/basecamp/generated/types.rb', line 5269 def to_json(*args) to_h.to_json(*args) end |