Class: DockerEngineRuby::Models::Info::GenericResource::NamedResourceSpec
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- DockerEngineRuby::Models::Info::GenericResource::NamedResourceSpec
- 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 ⇒ 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.
664 |
# File 'sig/docker_engine_ruby/models/info.rbs', line 664
def initialize: (?kind: String, ?value: String) -> void
|
Instance Attribute Details
#kind ⇒ String?
881 |
# File 'lib/docker_engine_ruby/models/info.rb', line 881 optional :kind, String, api_name: :Kind |
#value ⇒ String?
886 |
# File 'lib/docker_engine_ruby/models/info.rb', line 886 optional :value, String, api_name: :Value |
Instance Method Details
#to_hash ⇒ { kind: String, value: String }
666 |
# File 'sig/docker_engine_ruby/models/info.rbs', line 666
def to_hash: -> { kind: String, value: String }
|