Class: XTwitterScraper::Models::Support::TicketCreateResponse::Attachment
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- XTwitterScraper::Models::Support::TicketCreateResponse::Attachment
- Defined in:
- lib/x_twitter_scraper/models/support/ticket_create_response.rb,
sig/x_twitter_scraper/models/support/ticket_create_response.rbs
Defined Under Namespace
Modules: Status
Instance Attribute Summary collapse
- #public_id ⇒ String
- #status ⇒ Symbol, XTwitterScraper::Models::Support::TicketCreateResponse::Attachment::Status
Instance Method Summary collapse
-
#initialize(public_id:, status:) ⇒ Object
constructor
Attachment identifier and initial processing state.
- #to_hash ⇒ {
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.
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_create_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::TicketCreateResponse::Attachment::Status] required :status, enum: -> { XTwitterScraper::Models::Support::TicketCreateResponse::Attachment::Status } # @!method initialize(public_id:, status:) # Attachment identifier and initial processing state. # # @param public_id [String] # @param status [Symbol, XTwitterScraper::Models::Support::TicketCreateResponse::Attachment::Status] # @see XTwitterScraper::Models::Support::TicketCreateResponse::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_id ⇒ String
31 |
# File 'lib/x_twitter_scraper/models/support/ticket_create_response.rb', line 31 required :public_id, String, api_name: :publicId |
#status ⇒ Symbol, XTwitterScraper::Models::Support::TicketCreateResponse::Attachment::Status
36 |
# File 'lib/x_twitter_scraper/models/support/ticket_create_response.rb', line 36 required :status, enum: -> { XTwitterScraper::Models::Support::TicketCreateResponse::Attachment::Status } |
Instance Method Details
#to_hash ⇒ {
45 |
# File 'sig/x_twitter_scraper/models/support/ticket_create_response.rbs', line 45
def to_hash: -> {
|