Class: Dinie::WebhookEndpoint
- Inherits:
-
Internal::Model
- Object
- Internal::Model
- Dinie::WebhookEndpoint
- Defined in:
- lib/dinie/generated/types/webhook_endpoint.rb,
sig/dinie/generated/types/webhook_endpoint.rbs
Direct Known Subclasses
Constant Summary
Constants inherited from Internal::Model
Internal::Model::REDACTED_ATTRIBUTES
Instance Attribute Summary collapse
-
#created_at ⇒ Integer
readonly
Returns the value of attribute created_at.
-
#description ⇒ String
readonly
Returns the value of attribute description.
-
#events ⇒ Array[String]
readonly
Returns the value of attribute events.
-
#id ⇒ webhook_endpoint_id
readonly
Returns the value of attribute id.
-
#status ⇒ webhook_endpoint_status
readonly
Returns the value of attribute status.
-
#updated_at ⇒ Integer
readonly
Returns the value of attribute updated_at.
-
#url ⇒ String
readonly
Returns the value of attribute url.
Class Method Summary collapse
- .deserialize(raw) ⇒ WebhookEndpoint
- .serialize_create(url:, description: Internal::OMIT, events: Internal::OMIT) ⇒ Hash[Symbol, untyped]
- .serialize_update(description: Internal::OMIT, events: Internal::OMIT, status: Internal::OMIT, url: Internal::OMIT) ⇒ Hash[Symbol, untyped]
Methods inherited from Internal::Model
#==, attribute, attributes, #deconstruct_keys, #hash, inherited, #initialize, #inspect, #to_h
Constructor Details
This class inherits a constructor from Dinie::Internal::Model
Instance Attribute Details
#created_at ⇒ Integer (readonly)
Returns the value of attribute created_at.
6 7 8 |
# File 'sig/dinie/generated/types/webhook_endpoint.rbs', line 6 def created_at @created_at end |
#description ⇒ String (readonly)
Returns the value of attribute description.
7 8 9 |
# File 'sig/dinie/generated/types/webhook_endpoint.rbs', line 7 def description @description end |
#events ⇒ Array[String] (readonly)
Returns the value of attribute events.
8 9 10 |
# File 'sig/dinie/generated/types/webhook_endpoint.rbs', line 8 def events @events end |
#id ⇒ webhook_endpoint_id (readonly)
Returns the value of attribute id.
9 10 11 |
# File 'sig/dinie/generated/types/webhook_endpoint.rbs', line 9 def id @id end |
#status ⇒ webhook_endpoint_status (readonly)
Returns the value of attribute status.
10 11 12 |
# File 'sig/dinie/generated/types/webhook_endpoint.rbs', line 10 def status @status end |
#updated_at ⇒ Integer (readonly)
Returns the value of attribute updated_at.
11 12 13 |
# File 'sig/dinie/generated/types/webhook_endpoint.rbs', line 11 def updated_at @updated_at end |
#url ⇒ String (readonly)
Returns the value of attribute url.
12 13 14 |
# File 'sig/dinie/generated/types/webhook_endpoint.rbs', line 12 def url @url end |
Class Method Details
.deserialize(raw) ⇒ WebhookEndpoint
15 16 17 18 19 20 21 22 23 24 25 |
# File 'lib/dinie/generated/types/webhook_endpoint.rb', line 15 def self.deserialize(raw) new( created_at: raw[:created_at], description: raw[:description], events: raw[:events], id: raw[:id], status: raw[:status], updated_at: raw[:updated_at], url: raw[:url] ) end |
.serialize_create(url:, description: Internal::OMIT, events: Internal::OMIT) ⇒ Hash[Symbol, untyped]
27 28 29 |
# File 'lib/dinie/generated/types/webhook_endpoint.rb', line 27 def self.serialize_create(url:, description: Internal::OMIT, events: Internal::OMIT) { description:, events:, url: }.reject { |_key, value| Internal.omitted?(value) } end |
.serialize_update(description: Internal::OMIT, events: Internal::OMIT, status: Internal::OMIT, url: Internal::OMIT) ⇒ Hash[Symbol, untyped]
31 32 33 |
# File 'lib/dinie/generated/types/webhook_endpoint.rb', line 31 def self.serialize_update(description: Internal::OMIT, events: Internal::OMIT, status: Internal::OMIT, url: Internal::OMIT) { description:, events:, status:, url: }.reject { |_key, value| Internal.omitted?(value) } end |