Class: Amocrm::Models::UnsortedLeadCreateFormsParams::Body::Metadata

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

Overview

See Also:

  • Amocrm::Models::UnsortedLeadCreateFormsParams::Body#metadata

Defined Under Namespace

Modules: FormID

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(form_id: nil, form_name: nil, form_page: nil, form_sent_at: nil, form_type: nil, ip: nil, referer: nil, visitor_uid: nil) ⇒ Object

Form metadata

Parameters:

  • form_id (String, Integer) (defaults to: nil) —

    Form id in your system (string or numeric)

  • form_name (String) (defaults to: nil) —

    Form name (shown in amoCRM)

  • form_page (String) (defaults to: nil) —

    Page URL where form lives

  • form_sent_at (Integer) (defaults to: nil) —

    Unix timestamp (seconds) when the form was submitted

  • form_type (Integer) (defaults to: nil) —

    Form type code from amoCRM, use only if you know it

  • ip (String) (defaults to: nil) —

    IP address of the submitter

  • referer (String) (defaults to: nil) —

    Referrer URL

  • visitor_uid (String) (defaults to: nil) —

    Visitor uid from tracking, if you have it



# File 'lib/amocrm/models/unsorted_lead_create_forms_params.rb', line 130

Instance Attribute Details

#form_id ⇒ String, ...

Form id in your system (string or numeric)

Returns:

  • (String, Integer, nil)


86
# File 'lib/amocrm/models/unsorted_lead_create_forms_params.rb', line 86

optional :form_id, union: -> { Amocrm::UnsortedLeadCreateFormsParams::Body::Metadata::FormID }

#form_name ⇒ String?

Form name (shown in amoCRM)

Parameters:

  • (String)

Returns:

  • (String, nil)


92
# File 'lib/amocrm/models/unsorted_lead_create_forms_params.rb', line 92

optional :form_name, String

#form_page ⇒ String?

Page URL where form lives

Parameters:

  • (String)

Returns:

  • (String, nil)


98
# File 'lib/amocrm/models/unsorted_lead_create_forms_params.rb', line 98

optional :form_page, String

#form_sent_at ⇒ Integer?

Unix timestamp (seconds) when the form was submitted

Parameters:

  • (Integer)

Returns:

  • (Integer, nil)


104
# File 'lib/amocrm/models/unsorted_lead_create_forms_params.rb', line 104

optional :form_sent_at, Integer

#form_type ⇒ Integer?

Form type code from amoCRM, use only if you know it

Parameters:

  • (Integer)

Returns:

  • (Integer, nil)


110
# File 'lib/amocrm/models/unsorted_lead_create_forms_params.rb', line 110

optional :form_type, Integer

#ip ⇒ String?

IP address of the submitter

Parameters:

  • (String)

Returns:

  • (String, nil)


116
# File 'lib/amocrm/models/unsorted_lead_create_forms_params.rb', line 116

optional :ip, String

#referer ⇒ String?

Referrer URL

Parameters:

  • (String)

Returns:

  • (String, nil)


122
# File 'lib/amocrm/models/unsorted_lead_create_forms_params.rb', line 122

optional :referer, String

#visitor_uid ⇒ String?

Visitor uid from tracking, if you have it

Parameters:

  • (String)

Returns:

  • (String, nil)


128
# File 'lib/amocrm/models/unsorted_lead_create_forms_params.rb', line 128

optional :visitor_uid, String

Instance Method Details

#to_hash ⇒ {

Returns:

  • ({)


137
# File 'sig/amocrm/models/unsorted_lead_create_forms_params.rbs', line 137

def to_hash: -> {