Class: SportsOddsAPI::Models::AccountUsage

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/sports_odds_api/models/account_usage.rb,
sig/sports_odds_api/models/account_usage.rbs

Overview

See Also:

  • SportsOddsAPI::Resources::Account#get_usage

Defined Under Namespace

Classes: RateLimits

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(customer_id: nil, email: nil, is_active: nil, key_id: nil, rate_limits: nil, tier: nil) ⇒ Object

Parameters:

  • customer_id (String) (defaults to: nil)

    The Stripe customer ID for the account

  • email (String) (defaults to: nil)

    The email address associated with the account

  • is_active (Boolean) (defaults to: nil)

    Whether the API key is active

  • key_id (String) (defaults to: nil)

    The hashed identifier for the API key

  • rate_limits (SportsOddsAPI::Models::AccountUsage::RateLimits) (defaults to: nil)
  • tier (String) (defaults to: nil)

    The current subscription tier



# File 'lib/sports_odds_api/models/account_usage.rb', line 42

Instance Attribute Details

#customer_idString?

The Stripe customer ID for the account

Parameters:

  • (String)

Returns:

  • (String, nil)


11
# File 'lib/sports_odds_api/models/account_usage.rb', line 11

optional :customer_id, String, api_name: :customerID

#emailString?

The email address associated with the account

Parameters:

  • (String)

Returns:

  • (String, nil)


17
# File 'lib/sports_odds_api/models/account_usage.rb', line 17

optional :email, String

#is_activeBoolean?

Whether the API key is active

Parameters:

  • (Boolean)

Returns:

  • (Boolean, nil)


23
# File 'lib/sports_odds_api/models/account_usage.rb', line 23

optional :is_active, SportsOddsAPI::Internal::Type::Boolean, api_name: :isActive

#key_idString?

The hashed identifier for the API key

Parameters:

  • (String)

Returns:

  • (String, nil)


29
# File 'lib/sports_odds_api/models/account_usage.rb', line 29

optional :key_id, String, api_name: :keyID

#rate_limitsSportsOddsAPI::Models::AccountUsage::RateLimits?



34
# File 'lib/sports_odds_api/models/account_usage.rb', line 34

optional :rate_limits, -> { SportsOddsAPI::AccountUsage::RateLimits }, api_name: :rateLimits

#tierString?

The current subscription tier

Parameters:

  • (String)

Returns:

  • (String, nil)


40
# File 'lib/sports_odds_api/models/account_usage.rb', line 40

optional :tier, String

Instance Method Details

#to_hash{

Returns:

  • ({)


49
# File 'sig/sports_odds_api/models/account_usage.rbs', line 49

def to_hash: -> {