Class: Telnyx::Models::Comment

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/telnyx/models/comment.rb

Defined Under Namespace

Modules: CommentRecordType, CommenterType

Instance Attribute Summary collapse

Class Method 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(id: nil, body: nil, comment_record_id: nil, comment_record_type: nil, commenter: nil, commenter_type: nil, created_at: nil, read_at: nil, updated_at: nil) ⇒ Object

Parameters:

  • id (String) (defaults to: nil)
  • body (String) (defaults to: nil)
  • comment_record_id (String) (defaults to: nil)
  • comment_record_type (Symbol, Telnyx::Models::Comment::CommentRecordType) (defaults to: nil)
  • commenter (String) (defaults to: nil)
  • commenter_type (Symbol, Telnyx::Models::Comment::CommenterType) (defaults to: nil)
  • created_at (Time) (defaults to: nil)

    An ISO 8901 datetime string denoting when the comment was created.

  • read_at (Time) (defaults to: nil)

    An ISO 8901 datetime string for when the comment was read.

  • updated_at (Time) (defaults to: nil)

    An ISO 8901 datetime string for when the comment was updated.



# File 'lib/telnyx/models/comment.rb', line 56

Instance Attribute Details

#bodyString?

Returns:

  • (String, nil)


9
# File 'lib/telnyx/models/comment.rb', line 9

optional :body, String

#comment_record_idString?

Returns:

  • (String, nil)


14
# File 'lib/telnyx/models/comment.rb', line 14

optional :comment_record_id, String

#comment_record_typeSymbol, ...



19
# File 'lib/telnyx/models/comment.rb', line 19

optional :comment_record_type, enum: -> { Telnyx::Comment::CommentRecordType }

Class Method Details

.valuesArray<Symbol>

Returns:

  • (Array<Symbol>)


# File 'lib/telnyx/models/comment.rb', line 82