Class: Peddler::APIs::Support20250201::ChatEvent

Inherits:
Data
  • Object
show all
Defined in:
sig/peddler/apis/support_2025_02_01.rbs

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#attachments ⇒ Array[Peddler::APIs::Support20250201::Attachment]? (readonly)

Returns the value of attribute attachments.



109
110
111
# File 'sig/peddler/apis/support_2025_02_01.rbs', line 109

def attachments
  @attachments
end

#message ⇒ String? (readonly)

Returns the value of attribute message.

Returns:

  • (String, nil)


110
111
112
# File 'sig/peddler/apis/support_2025_02_01.rbs', line 110

def message
  @message
end

#participant ⇒ Peddler::APIs::Support20250201::Participant? (readonly)

Returns the value of attribute participant.



111
112
113
# File 'sig/peddler/apis/support_2025_02_01.rbs', line 111

def participant
  @participant
end

#timestamp ⇒ Time (readonly)

Returns the value of attribute timestamp.

Returns:

  • (Time)


112
113
114
# File 'sig/peddler/apis/support_2025_02_01.rbs', line 112

def timestamp
  @timestamp
end

#type ⇒ String (readonly)

Returns the value of attribute type.

Returns:

  • (String)


113
114
115
# File 'sig/peddler/apis/support_2025_02_01.rbs', line 113

def type
  @type
end

Class Method Details

.[](timestamp:, type:, attachments:, message:, participant:) ⇒ Peddler::APIs::Support20250201::ChatEvent .[](arg0, arg1, arg2, arg3, arg4) ⇒ Peddler::APIs::Support20250201::ChatEvent

Overloads:



102
103
# File 'sig/peddler/apis/support_2025_02_01.rbs', line 102

def self.[]: (timestamp: Time, type: String, ?attachments: Array[Peddler::APIs::Support20250201::Attachment]?, ?message: String?, ?participant: Peddler::APIs::Support20250201::Participant?) -> Peddler::APIs::Support20250201::ChatEvent
| (Time, String, Array[Peddler::APIs::Support20250201::Attachment]?, String?, Peddler::APIs::Support20250201::Participant?) -> Peddler::APIs::Support20250201::ChatEvent

.members ⇒ [ :timestamp, :type, :attachments, :message, :participant ]

Returns:

  • ([ :timestamp, :type, :attachments, :message, :participant ])


105
# File 'sig/peddler/apis/support_2025_02_01.rbs', line 105

def self.members: () -> [ :timestamp, :type, :attachments, :message, :participant ]

.new(timestamp:, type:, attachments:, message:, participant:) ⇒ Peddler::APIs::Support20250201::ChatEvent .new(arg0, arg1, arg2, arg3, arg4) ⇒ Peddler::APIs::Support20250201::ChatEvent

Overloads:



100
101
# File 'sig/peddler/apis/support_2025_02_01.rbs', line 100

def self.new: (timestamp: Time, type: String, ?attachments: Array[Peddler::APIs::Support20250201::Attachment]?, ?message: String?, ?participant: Peddler::APIs::Support20250201::Participant?) -> Peddler::APIs::Support20250201::ChatEvent
| (Time, String, Array[Peddler::APIs::Support20250201::Attachment]?, String?, Peddler::APIs::Support20250201::Participant?) -> Peddler::APIs::Support20250201::ChatEvent

.parse ⇒ Peddler::APIs::Support20250201::ChatEvent

Parameters:

  • (Hash[String | Symbol, untyped])
  • (Object)

Returns:



107
# File 'sig/peddler/apis/support_2025_02_01.rbs', line 107

def self.parse: (?Hash[String | Symbol, untyped], **untyped) -> Peddler::APIs::Support20250201::ChatEvent

Instance Method Details

#members ⇒ [ :timestamp, :type, :attachments, :message, :participant ]

Returns:

  • ([ :timestamp, :type, :attachments, :message, :participant ])


115
# File 'sig/peddler/apis/support_2025_02_01.rbs', line 115

def members: () -> [ :timestamp, :type, :attachments, :message, :participant ]

#to_h ⇒ { timestamp: Time, type: String, attachments: Array[Peddler::APIs::Support20250201::Attachment]?, message: String?, participant: Peddler::APIs::Support20250201::Participant? }

Returns:



116
# File 'sig/peddler/apis/support_2025_02_01.rbs', line 116

def to_h: () -> { timestamp: Time, type: String, attachments: Array[Peddler::APIs::Support20250201::Attachment]?, message: String?, participant: Peddler::APIs::Support20250201::Participant? }