Class: Peddler::APIs::SupplySources20200701::Duration

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)


145
146
147
# File 'sig/peddler/apis/supply_sources_2020_07_01.rbs', line 145

def time_unit
  @time_unit
end

#valueInteger? (readonly)

Returns the value of attribute value.

Returns:

  • (Integer, nil)


146
147
148
# File 'sig/peddler/apis/supply_sources_2020_07_01.rbs', line 146

def value
  @value
end

Class Method Details

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

Overloads:



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

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

.members[ :time_unit, :value ]

Returns:

  • ([ :time_unit, :value ])


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

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

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

Overloads:



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

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

.parsePeddler::APIs::SupplySources20200701::Duration

Parameters:

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

Returns:



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

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

Instance Method Details

#members[ :time_unit, :value ]

Returns:

  • ([ :time_unit, :value ])


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

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

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

Returns:

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


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

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