Class: GrowsurfRuby::Models::Campaign::WebhookTestResponse

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/growsurf_ruby/models/campaign/webhook_test_response.rb,
sig/growsurf_ruby/models/campaign/webhook_test_response.rbs

Overview

See Also:

  • GrowsurfRuby::Resources::Campaign::Webhooks#test

Defined Under Namespace

Classes: Response

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Internal::Type::BaseModel

==, #==, #[], coerce, #deconstruct_keys, #deep_to_h, dump, fields, hash, #hash, inherited, inspect, #inspect, known_fields, optional, recursively_to_h, required, #to_h, #to_json, #to_s, to_sorbet_type, #to_yaml

Methods included from Internal::Type::Converter

#coerce, coerce, #dump, dump, #inspect, inspect, meta_info, new_coerce_state, type_info

Methods included from Internal::Util::SorbetRuntimeSupport

#const_missing, #define_sorbet_constant!, #sorbet_constant_defined?, #to_sorbet_type, to_sorbet_type

Constructor Details

#initialize(success:, payload: nil, response: nil) ⇒ Object

Parameters:



# File 'lib/growsurf_ruby/models/campaign/webhook_test_response.rb', line 24

Instance Attribute Details

#payloadHash{Symbol=>Object}?

The mock event payload that was sent.

Parameters:

  • (::Hash[Symbol, top])

Returns:

  • (Hash{Symbol=>Object}, nil)


17
# File 'lib/growsurf_ruby/models/campaign/webhook_test_response.rb', line 17

optional :payload, GrowsurfRuby::Internal::Type::HashOf[GrowsurfRuby::Internal::Type::Unknown]

#responseGrowsurfRuby::Models::Campaign::WebhookTestResponse::Response?



22
# File 'lib/growsurf_ruby/models/campaign/webhook_test_response.rb', line 22

optional :response, -> { GrowsurfRuby::Campaign::WebhookTestResponse::Response }

#successBoolean

Parameters:

  • value (Boolean)

Returns:

  • (Boolean)


11
# File 'lib/growsurf_ruby/models/campaign/webhook_test_response.rb', line 11

required :success, GrowsurfRuby::Internal::Type::Boolean

Instance Method Details

#to_hash{

Returns:

  • ({)


30
# File 'sig/growsurf_ruby/models/campaign/webhook_test_response.rbs', line 30

def to_hash: -> {