Class: Stigg::Models::V1::Events::Beta::Customers::EntitlementCheckResponse::Data::Credit::Chain
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- Stigg::Models::V1::Events::Beta::Customers::EntitlementCheckResponse::Data::Credit::Chain
- Defined in:
- lib/stigg/models/v1/events/beta/customers/entitlement_check_response.rb
Instance Attribute Summary collapse
-
#current_usage ⇒ Float
Amount consumed by this entity in the current cadence period.
-
#entity_id ⇒ String
External id of the entity within the customer.
-
#is_granted ⇒ Boolean
Whether this node alone permits the requested usage.
-
#usage_limit ⇒ Float?
Hard usage limit for this node; null when no assignment is configured.
Instance Method Summary collapse
-
#initialize(current_usage:, entity_id:, is_granted:, usage_limit:) ⇒ Object
constructor
Per-entity governance node — limit and current usage for a single resolved entity.
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(current_usage:, entity_id:, is_granted:, usage_limit:) ⇒ Object
Per-entity governance node — limit and current usage for a single resolved entity.
|
|
# File 'lib/stigg/models/v1/events/beta/customers/entitlement_check_response.rb', line 512
|
Instance Attribute Details
#current_usage ⇒ Float
Amount consumed by this entity in the current cadence period.
492 |
# File 'lib/stigg/models/v1/events/beta/customers/entitlement_check_response.rb', line 492 required :current_usage, Float, api_name: :currentUsage |
#entity_id ⇒ String
External id of the entity within the customer.
498 |
# File 'lib/stigg/models/v1/events/beta/customers/entitlement_check_response.rb', line 498 required :entity_id, String, api_name: :entityId |
#is_granted ⇒ Boolean
Whether this node alone permits the requested usage.
504 |
# File 'lib/stigg/models/v1/events/beta/customers/entitlement_check_response.rb', line 504 required :is_granted, Stigg::Internal::Type::Boolean, api_name: :isGranted |
#usage_limit ⇒ Float?
Hard usage limit for this node; null when no assignment is configured.
510 |
# File 'lib/stigg/models/v1/events/beta/customers/entitlement_check_response.rb', line 510 required :usage_limit, Float, api_name: :usageLimit, nil?: true |