Method: LockstepSdk::WebhookModel#initialize
- Defined in:
- lib/lockstep_sdk/models/webhook_model.rb
#initialize(params = {}) ⇒ WebhookModel
Initialize the WebhookModel using the provided prototype
28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 |
# File 'lib/lockstep_sdk/models/webhook_model.rb', line 28 def initialize(params = {}) @webhook_id = params.dig(:webhook_id) @group_key = params.dig(:group_key) @name = params.dig(:name) @status_code = params.dig(:status_code) = params.dig(:status_message) @client_secret = params.dig(:client_secret) @request_content_type = params.dig(:request_content_type) @callback_http_method = params.dig(:callback_http_method) @callback_url = params.dig(:callback_url) @expiration_date = params.dig(:expiration_date) @retry_count = params.dig(:retry_count) @created = params.dig(:created) @created_user_id = params.dig(:created_user_id) @modified = params.dig(:modified) @modified_user_id = params.dig(:modified_user_id) @webhook_rules = params.dig(:webhook_rules) @partition_key = params.dig(:partition_key) end |