Class: DockerEngineRuby::Models::Node::Description::Platform

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/docker_engine_ruby/models/node.rb,
sig/docker_engine_ruby/models/node.rbs

Overview

See Also:

  • DockerEngineRuby::Models::Node::Description#platform

Instance Attribute Summary collapse

Instance Method Summary collapse

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.

Parameters:

  • architecture: (String)
  • os: (String)


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).

Parameters:

  • (String)

Returns:

  • (String, nil)


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).

Parameters:

  • (String)

Returns:

  • (String, nil)


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 }

Returns:

  • ({ architecture: String, os: String })


196
# File 'sig/docker_engine_ruby/models/node.rbs', line 196

def to_hash: -> { architecture: String, os: String }