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)


730
731
732
# File 'sig/peddler/apis/services_v1.rbs', line 730

def capacity_type
  @capacity_type
end

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

Returns the value of attribute slots.

Returns:



731
732
733
# File 'sig/peddler/apis/services_v1.rbs', line 731

def slots
  @slots
end

Class Method Details

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

Overloads:



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

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


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

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

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

Overloads:



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

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:



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

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

Instance Method Details

#members[ :capacity_type, :slots ]

Returns:

  • ([ :capacity_type, :slots ])


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

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

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

Returns:



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

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