Class: HubSpotSDK::Models::Crm::Extensions::ObjectToken

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/hubspot_sdk/models/crm/extensions/object_token.rb

Defined Under Namespace

Modules: DataType

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(value:, data_type: nil, label: nil, name: nil) ⇒ Object

Parameters:

  • value (String)

    The value of the property

  • data_type (Symbol, HubSpotSDK::Models::Crm::Extensions::ObjectToken::DataType) (defaults to: nil)

    Type of data represented by this property.

  • label (String) (defaults to: nil)

    The label for this property as you’d like it displayed to users.

  • name (String) (defaults to: nil)

    An internal identifier for this property. This value must be unique TODO.



# File 'lib/hubspot_sdk/models/crm/extensions/object_token.rb', line 36

Instance Attribute Details

#data_typeSymbol, ...

Type of data represented by this property.



18
19
20
21
22
# File 'lib/hubspot_sdk/models/crm/extensions/object_token.rb', line 18

optional :data_type,
enum: -> {
  HubSpotSDK::Crm::Extensions::ObjectToken::DataType
},
api_name: :dataType

#labelString?

The label for this property as you’d like it displayed to users.

Returns:

  • (String, nil)


28
# File 'lib/hubspot_sdk/models/crm/extensions/object_token.rb', line 28

optional :label, String

#nameString?

An internal identifier for this property. This value must be unique TODO.

Returns:

  • (String, nil)


34
# File 'lib/hubspot_sdk/models/crm/extensions/object_token.rb', line 34

optional :name, String

#valueString

The value of the property

Returns:

  • (String)


12
# File 'lib/hubspot_sdk/models/crm/extensions/object_token.rb', line 12

required :value, String