Class: DockerEngineRuby::Models::Info::DefaultAddressPool

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

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 ⇒ DefaultAddressPool

Returns a new instance of DefaultAddressPool.

Parameters:

  • base: (String)
  • size: (Integer)


568
# File 'sig/docker_engine_ruby/models/info.rbs', line 568

def initialize: (?base: String, ?size: Integer) -> void

Instance Attribute Details

#base ⇒ String?

Parameters:

  • (String)

Returns:

  • (String, nil)


768
# File 'lib/docker_engine_ruby/models/info.rb', line 768

optional :base, String, api_name: :Base

#size ⇒ Integer?

Parameters:

  • (Integer)

Returns:

  • (Integer, nil)


773
# File 'lib/docker_engine_ruby/models/info.rb', line 773

optional :size, Integer, api_name: :Size

Instance Method Details

#to_hash ⇒ { base: String, size: Integer }

Returns:

  • ({ base: String, size: Integer })


570
# File 'sig/docker_engine_ruby/models/info.rbs', line 570

def to_hash: -> { base: String, size: Integer }