Class: DockerEngineRuby::Models::Node::Description::Platform
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- DockerEngineRuby::Models::Node::Description::Platform
- Defined in:
- lib/docker_engine_ruby/models/node.rb,
sig/docker_engine_ruby/models/node.rbs
Overview
Instance Attribute Summary collapse
-
#architecture ⇒ String?
Architecture represents the hardware architecture (for example,
x86_64). -
#os ⇒ String?
OS represents the Operating System (for example,
linuxorwindows).
Instance Method Summary collapse
-
#initialize ⇒ Platform
constructor
A new instance of Platform.
- #to_hash ⇒ { architecture: String, os: 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 ⇒ Platform
Returns a new instance of Platform.
194 |
# File 'sig/docker_engine_ruby/models/node.rbs', line 194
def initialize: (?architecture: String, ?os: String) -> void
|
Instance Attribute Details
#architecture ⇒ String?
Architecture represents the hardware architecture (for example, x86_64).
190 |
# File 'lib/docker_engine_ruby/models/node.rb', line 190 optional :architecture, String, api_name: :Architecture |
#os ⇒ String?
OS represents the Operating System (for example, linux or windows).
196 |
# File 'lib/docker_engine_ruby/models/node.rb', line 196 optional :os, String, api_name: :OS |
Instance Method Details
#to_hash ⇒ { architecture: String, os: String }
196 |
# File 'sig/docker_engine_ruby/models/node.rbs', line 196
def to_hash: -> { architecture: String, os: String }
|