Class: Lithic::Models::Transactions::Events::EnhancedData::Fleet::Fuel
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- Lithic::Models::Transactions::Events::EnhancedData::Fleet::Fuel
- Defined in:
- lib/lithic/models/transactions/events/enhanced_data.rb
Overview
Defined Under Namespace
Modules: Type, UnitOfMeasure
Instance Attribute Summary collapse
-
#quantity ⇒ String?
The quantity of fuel purchased.
-
#type ⇒ Symbol, ...
The type of fuel purchased.
-
#unit_of_measure ⇒ Symbol, ...
Unit of measure for fuel disbursement.
-
#unit_price ⇒ Integer?
The price per unit of fuel.
Class Method Summary collapse
Instance Method Summary collapse
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(quantity: nil, type: nil, unit_of_measure: nil, unit_price: nil) ⇒ Object
|
|
# File 'lib/lithic/models/transactions/events/enhanced_data.rb', line 287
|
Instance Attribute Details
#quantity ⇒ String?
The quantity of fuel purchased.
261 |
# File 'lib/lithic/models/transactions/events/enhanced_data.rb', line 261 optional :quantity, String, nil?: true |
#type ⇒ Symbol, ...
The type of fuel purchased.
267 268 269 270 271 |
# File 'lib/lithic/models/transactions/events/enhanced_data.rb', line 267 optional :type, enum: -> { Lithic::Transactions::Events::EnhancedData::Fleet::Fuel::Type }, nil?: true |
#unit_of_measure ⇒ Symbol, ...
Unit of measure for fuel disbursement.
277 278 279 |
# File 'lib/lithic/models/transactions/events/enhanced_data.rb', line 277 optional :unit_of_measure, enum: -> { Lithic::Transactions::Events::EnhancedData::Fleet::Fuel::UnitOfMeasure }, nil?: true |
#unit_price ⇒ Integer?
The price per unit of fuel.
285 |
# File 'lib/lithic/models/transactions/events/enhanced_data.rb', line 285 optional :unit_price, Integer, nil?: true |
Class Method Details
.values ⇒ Array<Symbol>
|
|
# File 'lib/lithic/models/transactions/events/enhanced_data.rb', line 423
|