Class: DockerEngineRuby::Models::Node::Description::Resources::GenericResource::NamedResourceSpec
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- DockerEngineRuby::Models::Node::Description::Resources::GenericResource::NamedResourceSpec
- Defined in:
- lib/docker_engine_ruby/models/node.rb,
sig/docker_engine_ruby/models/node.rbs
Overview
Instance Attribute Summary collapse
Instance Method Summary collapse
-
#initialize ⇒ NamedResourceSpec
constructor
A new instance of NamedResourceSpec.
- #to_hash ⇒ { kind: String, value: 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 ⇒ NamedResourceSpec
Returns a new instance of NamedResourceSpec.
289 |
# File 'sig/docker_engine_ruby/models/node.rbs', line 289
def initialize: (?kind: String, ?value: String) -> void
|
Instance Attribute Details
#kind ⇒ String?
283 |
# File 'lib/docker_engine_ruby/models/node.rb', line 283 optional :kind, String, api_name: :Kind |
#value ⇒ String?
288 |
# File 'lib/docker_engine_ruby/models/node.rb', line 288 optional :value, String, api_name: :Value |
Instance Method Details
#to_hash ⇒ { kind: String, value: String }
291 |
# File 'sig/docker_engine_ruby/models/node.rbs', line 291
def to_hash: -> { kind: String, value: String }
|