Class: Stigg::Models::V1::Addon::Data::Entitlement
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- Stigg::Models::V1::Addon::Data::Entitlement
- Defined in:
- lib/stigg/models/v1/addon.rb
Defined Under Namespace
Modules: Type
Instance Attribute Summary collapse
-
#id ⇒ String
The unique identifier for the entity.
- #type ⇒ Symbol, Stigg::Models::V1::Addon::Data::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
147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 |
# File 'lib/stigg/models/v1/addon.rb', line 147 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::Addon::Data::Entitlement::Type] required :type, enum: -> { Stigg::V1::Addon::Data::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::Addon::Data::Entitlement::Type] # @see Stigg::Models::V1::Addon::Data::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
152 |
# File 'lib/stigg/models/v1/addon.rb', line 152 required :id, String |
#type ⇒ Symbol, Stigg::Models::V1::Addon::Data::Entitlement::Type
157 |
# File 'lib/stigg/models/v1/addon.rb', line 157 required :type, enum: -> { Stigg::V1::Addon::Data::Entitlement::Type } |