Class: Peddler::APIs::SupplySources20200701::ThroughputCap

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

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#time_unitString? (readonly)

Returns the value of attribute time_unit.

Returns:

  • (String, nil)


469
470
471
# File 'sig/peddler/apis/supply_sources_2020_07_01.rbs', line 469

def time_unit
  @time_unit
end

#valueInteger? (readonly)

Returns the value of attribute value.

Returns:

  • (Integer, nil)


470
471
472
# File 'sig/peddler/apis/supply_sources_2020_07_01.rbs', line 470

def value
  @value
end

Class Method Details

.[](time_unit:, value:) ⇒ Peddler::APIs::SupplySources20200701::ThroughputCap .[](arg0, arg1) ⇒ Peddler::APIs::SupplySources20200701::ThroughputCap

Overloads:



462
463
# File 'sig/peddler/apis/supply_sources_2020_07_01.rbs', line 462

def self.[]: (?time_unit: String?, ?value: Integer?) -> Peddler::APIs::SupplySources20200701::ThroughputCap
| (String?, Integer?) -> Peddler::APIs::SupplySources20200701::ThroughputCap

.members[ :time_unit, :value ]

Returns:

  • ([ :time_unit, :value ])


465
# File 'sig/peddler/apis/supply_sources_2020_07_01.rbs', line 465

def self.members: () -> [ :time_unit, :value ]

.new(time_unit:, value:) ⇒ Peddler::APIs::SupplySources20200701::ThroughputCap .new(arg0, arg1) ⇒ Peddler::APIs::SupplySources20200701::ThroughputCap

Overloads:



460
461
# File 'sig/peddler/apis/supply_sources_2020_07_01.rbs', line 460

def self.new: (?time_unit: String?, ?value: Integer?) -> Peddler::APIs::SupplySources20200701::ThroughputCap
| (String?, Integer?) -> Peddler::APIs::SupplySources20200701::ThroughputCap

.parsePeddler::APIs::SupplySources20200701::ThroughputCap

Parameters:

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

Returns:



467
# File 'sig/peddler/apis/supply_sources_2020_07_01.rbs', line 467

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

Instance Method Details

#members[ :time_unit, :value ]

Returns:

  • ([ :time_unit, :value ])


472
# File 'sig/peddler/apis/supply_sources_2020_07_01.rbs', line 472

def members: () -> [ :time_unit, :value ]

#to_h{ time_unit: String?, value: Integer? }

Returns:

  • ({ time_unit: String?, value: Integer? })


473
# File 'sig/peddler/apis/supply_sources_2020_07_01.rbs', line 473

def to_h: () -> { time_unit: String?, value: Integer? }