Class: Peddler::APIs::ServicesV1::RangeCapacity

Inherits:
Data
  • Object
show all
Defined in:
sig/peddler/apis/services_v1.rbs

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#capacity_typeString? (readonly)

Returns the value of attribute capacity_type.

Returns:

  • (String, nil)


711
712
713
# File 'sig/peddler/apis/services_v1.rbs', line 711

def capacity_type
  @capacity_type
end

#slotsArray[Peddler::APIs::ServicesV1::RangeSlot]? (readonly)

Returns the value of attribute slots.

Returns:



712
713
714
# File 'sig/peddler/apis/services_v1.rbs', line 712

def slots
  @slots
end

Class Method Details

.[](capacity_type:, slots:) ⇒ Peddler::APIs::ServicesV1::RangeCapacity .[](arg0, arg1) ⇒ Peddler::APIs::ServicesV1::RangeCapacity

Overloads:



704
705
# File 'sig/peddler/apis/services_v1.rbs', line 704

def self.[]: (?capacity_type: String?, ?slots: Array[Peddler::APIs::ServicesV1::RangeSlot]?) -> Peddler::APIs::ServicesV1::RangeCapacity
| (String?, Array[Peddler::APIs::ServicesV1::RangeSlot]?) -> Peddler::APIs::ServicesV1::RangeCapacity

.members[ :capacity_type, :slots ]

Returns:

  • ([ :capacity_type, :slots ])


707
# File 'sig/peddler/apis/services_v1.rbs', line 707

def self.members: () -> [ :capacity_type, :slots ]

.new(capacity_type:, slots:) ⇒ Peddler::APIs::ServicesV1::RangeCapacity .new(arg0, arg1) ⇒ Peddler::APIs::ServicesV1::RangeCapacity

Overloads:



702
703
# File 'sig/peddler/apis/services_v1.rbs', line 702

def self.new: (?capacity_type: String?, ?slots: Array[Peddler::APIs::ServicesV1::RangeSlot]?) -> Peddler::APIs::ServicesV1::RangeCapacity
| (String?, Array[Peddler::APIs::ServicesV1::RangeSlot]?) -> Peddler::APIs::ServicesV1::RangeCapacity

.parsePeddler::APIs::ServicesV1::RangeCapacity

Parameters:

  • (Hash[String | Symbol, untyped])
  • (Object)

Returns:



709
# File 'sig/peddler/apis/services_v1.rbs', line 709

def self.parse: (?Hash[String | Symbol, untyped], **untyped) -> Peddler::APIs::ServicesV1::RangeCapacity

Instance Method Details

#members[ :capacity_type, :slots ]

Returns:

  • ([ :capacity_type, :slots ])


714
# File 'sig/peddler/apis/services_v1.rbs', line 714

def members: () -> [ :capacity_type, :slots ]

#to_h{ capacity_type: String?, slots: Array[Peddler::APIs::ServicesV1::RangeSlot]? }

Returns:



715
# File 'sig/peddler/apis/services_v1.rbs', line 715

def to_h: () -> { capacity_type: String?, slots: Array[Peddler::APIs::ServicesV1::RangeSlot]? }