Class: DockerEngineRuby::Models::Info::GenericResource::DiscreteResourceSpec
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- DockerEngineRuby::Models::Info::GenericResource::DiscreteResourceSpec
- Defined in:
- lib/docker_engine_ruby/models/info.rb,
sig/docker_engine_ruby/models/info.rbs
Overview
Instance Attribute Summary collapse
Instance Method Summary collapse
-
#initialize ⇒ DiscreteResourceSpec
constructor
A new instance of DiscreteResourceSpec.
- #to_hash ⇒ { kind: String, value: 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 ⇒ DiscreteResourceSpec
Returns a new instance of DiscreteResourceSpec.
648 |
# File 'sig/docker_engine_ruby/models/info.rbs', line 648 def initialize: (?kind: String, ?value: Integer) -> void |
Instance Attribute Details
#kind ⇒ String?
864 |
# File 'lib/docker_engine_ruby/models/info.rb', line 864 optional :kind, String, api_name: :Kind |
#value ⇒ Integer?
869 |
# File 'lib/docker_engine_ruby/models/info.rb', line 869 optional :value, Integer, api_name: :Value |
Instance Method Details
#to_hash ⇒ { kind: String, value: Integer }
650 |
# File 'sig/docker_engine_ruby/models/info.rbs', line 650 def to_hash: -> { kind: String, value: Integer } |