Class: Cadenya::Types::RotateWebhookEventsHmacSecretResponse

Inherits:
Object
  • Object
show all
Defined in:
lib/cadenya/types.rb

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(webhook_events_hmac_secret: nil) ⇒ RotateWebhookEventsHmacSecretResponse

Returns a new instance of RotateWebhookEventsHmacSecretResponse.



4920
4921
4922
# File 'lib/cadenya/types.rb', line 4920

def initialize(webhook_events_hmac_secret: nil)
  @webhook_events_hmac_secret = webhook_events_hmac_secret
end

Instance Attribute Details

#webhook_events_hmac_secretObject (readonly)

Returns the value of attribute webhook_events_hmac_secret.



4918
4919
4920
# File 'lib/cadenya/types.rb', line 4918

def webhook_events_hmac_secret
  @webhook_events_hmac_secret
end

Class Method Details

.from_json(data) ⇒ Object



4924
4925
4926
4927
4928
# File 'lib/cadenya/types.rb', line 4924

def self.from_json(data)
  new(
    webhook_events_hmac_secret: data["webhookEventsHmacSecret"],
  )
end

Instance Method Details

#to_hObject



4930
4931
4932
4933
4934
# File 'lib/cadenya/types.rb', line 4930

def to_h
  {
    webhook_events_hmac_secret: Util.plain(@webhook_events_hmac_secret),
  }.reject { |_k, v| v.nil? }
end