Class: Stigg::Models::V1::AddonListResponse::Entitlement
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- Stigg::Models::V1::AddonListResponse::Entitlement
- Defined in:
- lib/stigg/models/v1/addon_list_response.rb
Defined Under Namespace
Modules: Type
Instance Attribute Summary collapse
-
#id ⇒ String
The unique identifier for the entity.
- #type ⇒ Symbol, Stigg::Models::V1::AddonListResponse::Entitlement::Type
Instance Method Summary collapse
-
#initialize(id:, type:) ⇒ Object
constructor
Entitlement reference with type and identifier.
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(id:, type:) ⇒ Object
Entitlement reference with type and identifier
135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 |
# File 'lib/stigg/models/v1/addon_list_response.rb', line 135 class Entitlement < Stigg::Internal::Type::BaseModel # @!attribute id # The unique identifier for the entity # # @return [String] required :id, String # @!attribute type # # @return [Symbol, Stigg::Models::V1::AddonListResponse::Entitlement::Type] required :type, enum: -> { Stigg::Models::V1::AddonListResponse::Entitlement::Type } # @!method initialize(id:, type:) # Entitlement reference with type and identifier # # @param id [String] The unique identifier for the entity # # @param type [Symbol, Stigg::Models::V1::AddonListResponse::Entitlement::Type] # @see Stigg::Models::V1::AddonListResponse::Entitlement#type module Type extend Stigg::Internal::Type::Enum FEATURE = :FEATURE CREDIT = :CREDIT # @!method self.values # @return [Array<Symbol>] end end |
Instance Attribute Details
#id ⇒ String
The unique identifier for the entity
140 |
# File 'lib/stigg/models/v1/addon_list_response.rb', line 140 required :id, String |
#type ⇒ Symbol, Stigg::Models::V1::AddonListResponse::Entitlement::Type
145 |
# File 'lib/stigg/models/v1/addon_list_response.rb', line 145 required :type, enum: -> { Stigg::Models::V1::AddonListResponse::Entitlement::Type } |