Class: Trycourier::Models::Utm

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/trycourier/models/utm.rb

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(campaign: nil, content: nil, medium: nil, source: nil, term: nil) ⇒ Object

Parameters:

  • campaign (String, nil) (defaults to: nil)
  • content (String, nil) (defaults to: nil)
  • medium (String, nil) (defaults to: nil)
  • source (String, nil) (defaults to: nil)
  • term (String, nil) (defaults to: nil)


# File 'lib/trycourier/models/utm.rb', line 31

Instance Attribute Details

#campaignString?

Returns:

  • (String, nil)


9
# File 'lib/trycourier/models/utm.rb', line 9

optional :campaign, String, nil?: true

#contentString?

Returns:

  • (String, nil)


14
# File 'lib/trycourier/models/utm.rb', line 14

optional :content, String, nil?: true

#mediumString?

Returns:

  • (String, nil)


19
# File 'lib/trycourier/models/utm.rb', line 19

optional :medium, String, nil?: true

#sourceString?

Returns:

  • (String, nil)


24
# File 'lib/trycourier/models/utm.rb', line 24

optional :source, String, nil?: true

#termString?

Returns:

  • (String, nil)


29
# File 'lib/trycourier/models/utm.rb', line 29

optional :term, String, nil?: true