Class: Handinger::Models::Worker::Usage
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- Handinger::Models::Worker::Usage
- Defined in:
- lib/handinger/models/worker.rb,
sig/handinger/models/worker.rbs
Overview
Instance Attribute Summary collapse
Instance Method Summary collapse
-
#initialize(duration_ms: nil) ⇒ Usage
constructor
A new instance of Usage.
- #to_hash ⇒ { duration_ms: 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(duration_ms: nil) ⇒ Usage
Returns a new instance of Usage.
|
|
# File 'lib/handinger/models/worker.rb', line 248
|
Instance Attribute Details
#duration_ms ⇒ Integer?
246 |
# File 'lib/handinger/models/worker.rb', line 246 optional :duration_ms, Integer, api_name: :durationMs |
Instance Method Details
#to_hash ⇒ { duration_ms: Integer }
216 |
# File 'sig/handinger/models/worker.rbs', line 216
def to_hash: -> { duration_ms: Integer }
|