Class: Inttegro::MessageTemplate::VariableItemInput

Inherits:
T::Struct
  • Object
show all
Defined in:
lib/inttegro/message_template/variable_item_input.rb

Overview

Typed representation of the variable item input object in the Inttegro API.

This generated model is immutable. Construct it with .new, or decode a string-keyed API payload with .from_hash. #serialize produces a string-keyed hash using the original wire field names and serialized enum values.

Instance Attribute Summary collapse

Instance Attribute Details

#about ⇒ String? (readonly)

Value of the about field in the Inttegro API payload.

Optional in the API payload; omitted values default to nil. Wire name: about.

Returns:

  • (String, nil)


48
49
50
51
52
53
54
# File 'lib/inttegro/message_template/variable_item_input.rb', line 48

class VariableItemInput < T::Struct
  const :about, T.nilable(String), default: nil
  const :default, T.nilable(Object), default: nil
  const :name, String
  const :required, T.nilable(T::Boolean), default: nil
  const :type, Inttegro::MessageTemplate::VariableItemType
end

#default ⇒ Object? (readonly)

Value of the default field in the Inttegro API payload.

Optional in the API payload; omitted values default to nil. Wire name: default.

Returns:

  • (Object, nil)


48
49
50
51
52
53
54
# File 'lib/inttegro/message_template/variable_item_input.rb', line 48

class VariableItemInput < T::Struct
  const :about, T.nilable(String), default: nil
  const :default, T.nilable(Object), default: nil
  const :name, String
  const :required, T.nilable(T::Boolean), default: nil
  const :type, Inttegro::MessageTemplate::VariableItemType
end

#name ⇒ String (readonly)

Value of the name field in the Inttegro API payload.

Required in the API payload. Wire name: name.

Returns:

  • (String)


48
49
50
51
52
53
54
# File 'lib/inttegro/message_template/variable_item_input.rb', line 48

class VariableItemInput < T::Struct
  const :about, T.nilable(String), default: nil
  const :default, T.nilable(Object), default: nil
  const :name, String
  const :required, T.nilable(T::Boolean), default: nil
  const :type, Inttegro::MessageTemplate::VariableItemType
end

#required ⇒ Boolean? (readonly)

Value of the required field in the Inttegro API payload.

Optional in the API payload; omitted values default to nil. Wire name: required.

Returns:

  • (Boolean, nil)


48
49
50
51
52
53
54
# File 'lib/inttegro/message_template/variable_item_input.rb', line 48

class VariableItemInput < T::Struct
  const :about, T.nilable(String), default: nil
  const :default, T.nilable(Object), default: nil
  const :name, String
  const :required, T.nilable(T::Boolean), default: nil
  const :type, Inttegro::MessageTemplate::VariableItemType
end

#type ⇒ Inttegro::MessageTemplate::VariableItemType (readonly)

Value of the type field in the Inttegro API payload.

Required in the API payload. Wire name: type.



48
49
50
51
52
53
54
# File 'lib/inttegro/message_template/variable_item_input.rb', line 48

class VariableItemInput < T::Struct
  const :about, T.nilable(String), default: nil
  const :default, T.nilable(Object), default: nil
  const :name, String
  const :required, T.nilable(T::Boolean), default: nil
  const :type, Inttegro::MessageTemplate::VariableItemType
end