Class: XTwitterScraper::Models::Support::TicketRetrieveResponse::Message

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/x_twitter_scraper/models/support/ticket_retrieve_response.rb

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(body: nil, created_at: nil, sender: nil) ⇒ Object

Parameters:

  • body (String) (defaults to: nil)
  • created_at (Time) (defaults to: nil)
  • sender (String) (defaults to: nil)


47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
# File 'lib/x_twitter_scraper/models/support/ticket_retrieve_response.rb', line 47

class Message < XTwitterScraper::Internal::Type::BaseModel
  # @!attribute body
  #
  #   @return [String, nil]
  optional :body, String

  # @!attribute created_at
  #
  #   @return [Time, nil]
  optional :created_at, Time, api_name: :createdAt

  # @!attribute sender
  #
  #   @return [String, nil]
  optional :sender, String

  # @!method initialize(body: nil, created_at: nil, sender: nil)
  #   @param body [String]
  #   @param created_at [Time]
  #   @param sender [String]
end

Instance Attribute Details

#bodyString?

Returns:

  • (String, nil)


51
# File 'lib/x_twitter_scraper/models/support/ticket_retrieve_response.rb', line 51

optional :body, String

#created_atTime?

Returns:

  • (Time, nil)


56
# File 'lib/x_twitter_scraper/models/support/ticket_retrieve_response.rb', line 56

optional :created_at, Time, api_name: :createdAt

#senderString?

Returns:

  • (String, nil)


61
# File 'lib/x_twitter_scraper/models/support/ticket_retrieve_response.rb', line 61

optional :sender, String