Class: Orb::Models::NewFloatingTieredPackagePrice::TieredPackageConfig::Tier
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- Orb::Models::NewFloatingTieredPackagePrice::TieredPackageConfig::Tier
- Defined in:
- lib/orb/models/new_floating_tiered_package_price.rb,
sig/orb/models/new_floating_tiered_package_price.rbs
Instance Attribute Summary collapse
-
#per_unit ⇒ String
Price per package.
- #tier_lower_bound ⇒ String
Instance Method Summary collapse
-
#initialize(per_unit:, tier_lower_bound:) ⇒ Tier
constructor
Configuration for a single tier with business logic.
- #to_hash ⇒ { per_unit: String, tier_lower_bound: String }
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(per_unit:, tier_lower_bound:) ⇒ Tier
Configuration for a single tier with business logic
218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 |
# File 'lib/orb/models/new_floating_tiered_package_price.rb', line 218 class Tier < Orb::Internal::Type::BaseModel # @!attribute per_unit # Price per package # # @return [String] required :per_unit, String # @!attribute tier_lower_bound # # @return [String] required :tier_lower_bound, String # @!method initialize(per_unit:, tier_lower_bound:) # Configuration for a single tier with business logic # # @param per_unit [String] Price per package # # @param tier_lower_bound [String] end |
Instance Attribute Details
#per_unit ⇒ String
Price per package
223 |
# File 'lib/orb/models/new_floating_tiered_package_price.rb', line 223 required :per_unit, String |
#tier_lower_bound ⇒ String
228 |
# File 'lib/orb/models/new_floating_tiered_package_price.rb', line 228 required :tier_lower_bound, String |
Instance Method Details
#to_hash ⇒ { per_unit: String, tier_lower_bound: String }
160 |
# File 'sig/orb/models/new_floating_tiered_package_price.rbs', line 160
def to_hash: -> { per_unit: String, tier_lower_bound: String }
|