Class: Peddler::APIs::SupplySources20200701::Duration
- Inherits:
-
Data
- Object
- Data
- Peddler::APIs::SupplySources20200701::Duration
- Defined in:
- sig/peddler/apis/supply_sources_2020_07_01.rbs
Instance Attribute Summary collapse
-
#time_unit ⇒ String?
readonly
Returns the value of attribute time_unit.
-
#value ⇒ Integer?
readonly
Returns the value of attribute value.
Class Method Summary collapse
-
.[] ⇒ Object
-
.members ⇒ [ :time_unit, :value ]
-
.new ⇒ Object
-
.parse ⇒ Peddler::APIs::SupplySources20200701::Duration
Instance Method Summary collapse
Instance Attribute Details
#time_unit ⇒ String? (readonly)
Returns the value of attribute time_unit.
145 146 147 |
# File 'sig/peddler/apis/supply_sources_2020_07_01.rbs', line 145 def time_unit @time_unit end |
#value ⇒ Integer? (readonly)
Returns the value of attribute value.
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
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 ]
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
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
|
.parse ⇒ Peddler::APIs::SupplySources20200701::Duration
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 ]
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? }
149 |
# File 'sig/peddler/apis/supply_sources_2020_07_01.rbs', line 149
def to_h: () -> { time_unit: String?, value: Integer? }
|