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.



132
133
134
# File 'sig/peddler/apis/support_2025_02_01.rbs', line 132

def attachments
  @attachments
end

#message ⇒ String? (readonly)

Returns the value of attribute message.

Returns:

  • (String, nil)


133
134
135
# File 'sig/peddler/apis/support_2025_02_01.rbs', line 133

def message
  @message
end

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

Returns the value of attribute participant.



134
135
136
# File 'sig/peddler/apis/support_2025_02_01.rbs', line 134

def participant
  @participant
end

#timestamp ⇒ Time (readonly)

Returns the value of attribute timestamp.

Returns:

  • (Time)


135
136
137
# File 'sig/peddler/apis/support_2025_02_01.rbs', line 135

def timestamp
  @timestamp
end

#type ⇒ String (readonly)

Returns the value of attribute type.

Returns:

  • (String)


136
137
138
# File 'sig/peddler/apis/support_2025_02_01.rbs', line 136

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:



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

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 ])


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

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:



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

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:



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

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 ])


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

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:



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

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