Class: ContextDev::Models::BatchSubmitParams::Identifiers

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/context_dev/models/batch_submit_params.rb,
sig/context_dev/models/batch_submit_params.rbs

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(linkedin_url: nil) ⇒ Identifiers

Known identifiers for the person. At least one identifier is required.

Parameters:



42
43
44
45
46
47
48
49
50
51
52
53
# File 'lib/context_dev/models/batch_submit_params.rb', line 42

class Identifiers < ContextDev::Internal::Type::BaseModel
  # @!attribute linkedin_url
  #   LinkedIn profile URL, e.g. https://www.linkedin.com/in/yahia-bakour/.
  #
  #   @return [String, nil]
  optional :linkedin_url, String, api_name: :linkedinUrl

  # @!method initialize(linkedin_url: nil)
  #   Known identifiers for the person. At least one identifier is required.
  #
  #   @param linkedin_url [String] LinkedIn profile URL, e.g. https://www.linkedin.com/in/yahia-bakour/.
end

Instance Attribute Details

#linkedin_urlString?

LinkedIn profile URL, e.g. https://www.linkedin.com/in/yahia-bakour/.

Parameters:

  • (String)

Returns:

  • (String, nil)


47
# File 'lib/context_dev/models/batch_submit_params.rb', line 47

optional :linkedin_url, String, api_name: :linkedinUrl

Instance Method Details

#to_hash{ linkedin_url: String }

Returns:

  • ({ linkedin_url: String })


48
# File 'sig/context_dev/models/batch_submit_params.rbs', line 48

def to_hash: -> { linkedin_url: String }