Class: XTwitterScraper::Models::Support::TicketReplyResponse::Attachment

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/x_twitter_scraper/models/support/ticket_reply_response.rb,
sig/x_twitter_scraper/models/support/ticket_reply_response.rbs

Defined Under Namespace

Modules: Status

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(public_id:, status:) ⇒ Object

Attachment identifier and initial processing state.

Parameters:



27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
# File 'lib/x_twitter_scraper/models/support/ticket_reply_response.rb', line 27

class Attachment < XTwitterScraper::Internal::Type::BaseModel
  # @!attribute public_id
  #
  #   @return [String]
  required :public_id, String, api_name: :publicId

  # @!attribute status
  #
  #   @return [Symbol, XTwitterScraper::Models::Support::TicketReplyResponse::Attachment::Status]
  required :status, enum: -> { XTwitterScraper::Models::Support::TicketReplyResponse::Attachment::Status }

  # @!method initialize(public_id:, status:)
  #   Attachment identifier and initial processing state.
  #
  #   @param public_id [String]
  #   @param status [Symbol, XTwitterScraper::Models::Support::TicketReplyResponse::Attachment::Status]

  # @see XTwitterScraper::Models::Support::TicketReplyResponse::Attachment#status
  module Status
    extend XTwitterScraper::Internal::Type::Enum

    PENDING = :pending
    READY = :ready
    FAILED = :failed

    # @!method self.values
    #   @return [Array<Symbol>]
  end
end

Instance Attribute Details

#public_idString

Parameters:

  • value (String)

Returns:

  • (String)


31
# File 'lib/x_twitter_scraper/models/support/ticket_reply_response.rb', line 31

required :public_id, String, api_name: :publicId

#statusSymbol, XTwitterScraper::Models::Support::TicketReplyResponse::Attachment::Status

Parameters:

  • value (XTwitterScraper::Models::Support::TicketReplyResponse::Attachment::status)

Returns:



36
# File 'lib/x_twitter_scraper/models/support/ticket_reply_response.rb', line 36

required :status, enum: -> { XTwitterScraper::Models::Support::TicketReplyResponse::Attachment::Status }

Instance Method Details

#to_hash{

Returns:

  • ({)


45
# File 'sig/x_twitter_scraper/models/support/ticket_reply_response.rbs', line 45

def to_hash: -> {