Class: XTwitterScraper::Models::GuestWalletAmount
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- XTwitterScraper::Models::GuestWalletAmount
- Defined in:
- lib/x_twitter_scraper/models/guest_wallet_amount.rb,
sig/x_twitter_scraper/models/guest_wallet_amount.rbs
Instance Attribute Summary collapse
-
#amount_minor ⇒ Integer
USD amount in cents.
- #currency ⇒ Symbol, :usd
Instance Method Summary collapse
-
#initialize(amount_minor:, currency: :usd) ⇒ GuestWalletAmount
constructor
Confirmed USD amount for a guest wallet purchase.
- #to_hash ⇒ { amount_minor: Integer, currency: :usd }
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(amount_minor:, currency: :usd) ⇒ GuestWalletAmount
Confirmed USD amount for a guest wallet purchase.
|
|
# File 'lib/x_twitter_scraper/models/guest_wallet_amount.rb', line 17
|
Instance Attribute Details
#amount_minor ⇒ Integer
USD amount in cents. Accepted range is $10-$250.
10 |
# File 'lib/x_twitter_scraper/models/guest_wallet_amount.rb', line 10 required :amount_minor, Integer |
#currency ⇒ Symbol, :usd
15 |
# File 'lib/x_twitter_scraper/models/guest_wallet_amount.rb', line 15 required :currency, const: :usd |
Instance Method Details
#to_hash ⇒ { amount_minor: Integer, currency: :usd }
12 |
# File 'sig/x_twitter_scraper/models/guest_wallet_amount.rbs', line 12
def to_hash: -> { amount_minor: Integer, currency: :usd }
|