Class: SportsOddsAPI::Models::AccountUsage
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- SportsOddsAPI::Models::AccountUsage
- Defined in:
- lib/sports_odds_api/models/account_usage.rb,
sig/sports_odds_api/models/account_usage.rbs
Overview
Defined Under Namespace
Classes: RateLimits
Instance Attribute Summary collapse
-
#customer_id ⇒ String?
The Stripe customer ID for the account.
-
#email ⇒ String?
The email address associated with the account.
-
#is_active ⇒ Boolean?
Whether the API key is active.
-
#key_id ⇒ String?
The hashed identifier for the API key.
- #rate_limits ⇒ SportsOddsAPI::Models::AccountUsage::RateLimits?
-
#tier ⇒ String?
The current subscription tier.
Instance Method Summary collapse
- #initialize(customer_id: nil, email: nil, is_active: nil, key_id: nil, rate_limits: nil, tier: nil) ⇒ Object constructor
- #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(customer_id: nil, email: nil, is_active: nil, key_id: nil, rate_limits: nil, tier: nil) ⇒ Object
|
|
# File 'lib/sports_odds_api/models/account_usage.rb', line 42
|
Instance Attribute Details
#customer_id ⇒ String?
The Stripe customer ID for the account
11 |
# File 'lib/sports_odds_api/models/account_usage.rb', line 11 optional :customer_id, String, api_name: :customerID |
#email ⇒ String?
The email address associated with the account
17 |
# File 'lib/sports_odds_api/models/account_usage.rb', line 17 optional :email, String |
#is_active ⇒ Boolean?
Whether the API key is active
23 |
# File 'lib/sports_odds_api/models/account_usage.rb', line 23 optional :is_active, SportsOddsAPI::Internal::Type::Boolean, api_name: :isActive |
#key_id ⇒ String?
The hashed identifier for the API key
29 |
# File 'lib/sports_odds_api/models/account_usage.rb', line 29 optional :key_id, String, api_name: :keyID |
#rate_limits ⇒ SportsOddsAPI::Models::AccountUsage::RateLimits?
34 |
# File 'lib/sports_odds_api/models/account_usage.rb', line 34 optional :rate_limits, -> { SportsOddsAPI::AccountUsage::RateLimits }, api_name: :rateLimits |
#tier ⇒ String?
The current subscription tier
40 |
# File 'lib/sports_odds_api/models/account_usage.rb', line 40 optional :tier, String |
Instance Method Details
#to_hash ⇒ {
49 |
# File 'sig/sports_odds_api/models/account_usage.rbs', line 49
def to_hash: -> {
|