Class: Stigg::Models::V1::Subscription::Data::Addon
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- Stigg::Models::V1::Subscription::Data::Addon
- Defined in:
- lib/stigg/models/v1/subscription.rb,
sig/stigg/models/v1/subscription.rbs
Instance Attribute Summary collapse
-
#id ⇒ String
Addon ID.
-
#quantity ⇒ Integer
Number of addon instances.
Instance Method Summary collapse
-
#initialize ⇒ Addon
constructor
A new instance of Addon.
- #to_hash ⇒ { id: String, quantity: Integer }
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 ⇒ Addon
Returns a new instance of Addon.
250 |
# File 'sig/stigg/models/v1/subscription.rbs', line 250
def initialize: (id: String, quantity: Integer) -> void
|
Instance Attribute Details
#id ⇒ String
Addon ID
337 |
# File 'lib/stigg/models/v1/subscription.rb', line 337 required :id, String |
#quantity ⇒ Integer
Number of addon instances
343 |
# File 'lib/stigg/models/v1/subscription.rb', line 343 required :quantity, Integer |
Instance Method Details
#to_hash ⇒ { id: String, quantity: Integer }
252 |
# File 'sig/stigg/models/v1/subscription.rbs', line 252
def to_hash: -> { id: String, quantity: Integer }
|