Class: Peddler::APIs::ShippingV2::DateRange
- Inherits:
-
Data
- Object
- Data
- Peddler::APIs::ShippingV2::DateRange
- Defined in:
- sig/peddler/apis/shipping_v2.rbs
Instance Attribute Summary collapse
-
#end_date ⇒ Time?
readonly
Returns the value of attribute end_date.
-
#start_date ⇒ Time?
readonly
Returns the value of attribute start_date.
Class Method Summary collapse
-
.[] ⇒ Object
-
.members ⇒ [ :end_date, :start_date ]
-
.new ⇒ Object
-
.parse ⇒ Peddler::APIs::ShippingV2::DateRange
Instance Method Summary collapse
Instance Attribute Details
#end_date ⇒ Time? (readonly)
Returns the value of attribute end_date.
481 482 483 |
# File 'sig/peddler/apis/shipping_v2.rbs', line 481 def end_date @end_date end |
#start_date ⇒ Time? (readonly)
Returns the value of attribute start_date.
482 483 484 |
# File 'sig/peddler/apis/shipping_v2.rbs', line 482 def start_date @start_date end |
Class Method Details
.[](end_date:, start_date:) ⇒ Peddler::APIs::ShippingV2::DateRange .[](arg0, arg1) ⇒ Peddler::APIs::ShippingV2::DateRange
474 475 |
# File 'sig/peddler/apis/shipping_v2.rbs', line 474
def self.[]: (?end_date: Time?, ?start_date: Time?) -> Peddler::APIs::ShippingV2::DateRange
| (Time?, Time?) -> Peddler::APIs::ShippingV2::DateRange
|
.members ⇒ [ :end_date, :start_date ]
477 |
# File 'sig/peddler/apis/shipping_v2.rbs', line 477
def self.members: () -> [ :end_date, :start_date ]
|
.new(end_date:, start_date:) ⇒ Peddler::APIs::ShippingV2::DateRange .new(arg0, arg1) ⇒ Peddler::APIs::ShippingV2::DateRange
472 473 |
# File 'sig/peddler/apis/shipping_v2.rbs', line 472
def self.new: (?end_date: Time?, ?start_date: Time?) -> Peddler::APIs::ShippingV2::DateRange
| (Time?, Time?) -> Peddler::APIs::ShippingV2::DateRange
|
.parse ⇒ Peddler::APIs::ShippingV2::DateRange
479 |
# File 'sig/peddler/apis/shipping_v2.rbs', line 479
def self.parse: (?Hash[String | Symbol, untyped], **untyped) -> Peddler::APIs::ShippingV2::DateRange
|
Instance Method Details
#members ⇒ [ :end_date, :start_date ]
484 |
# File 'sig/peddler/apis/shipping_v2.rbs', line 484
def members: () -> [ :end_date, :start_date ]
|
#to_h ⇒ { end_date: Time?, start_date: Time? }
485 |
# File 'sig/peddler/apis/shipping_v2.rbs', line 485
def to_h: () -> { end_date: Time?, start_date: Time? }
|