Class: Yoomoney::Models::DealListParams::ExpiresAt

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/yoomoney/models/deal_list_params.rb,
sig/yoomoney/models/deal_list_params.rbs

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Internal::Type::BaseModel

==, #==, #[], coerce, #deconstruct_keys, #deep_to_h, dump, fields, hash, #hash, inherited, inspect, #inspect, known_fields, optional, recursively_to_h, required, #to_h, #to_json, #to_s, to_sorbet_type, #to_yaml

Methods included from Internal::Type::Converter

#coerce, coerce, #dump, dump, inspect, #inspect, meta_info, new_coerce_state, type_info

Methods included from Internal::Util::SorbetRuntimeSupport

#const_missing, #define_sorbet_constant!, #sorbet_constant_defined?, #to_sorbet_type, to_sorbet_type

Constructor Details

#initialize ⇒ ExpiresAt

Returns a new instance of ExpiresAt.

Parameters:

  • gt: (Time)
  • gte: (Time)
  • lt: (Time)
  • lte: (Time)


111
# File 'sig/yoomoney/models/deal_list_params.rbs', line 111

def initialize: (?gt: Time, ?gte: Time, ?lt: Time, ?lte: Time) -> void

Instance Attribute Details

#gt ⇒ Time?

Parameters:

  • (Time)

Returns:

  • (Time, nil)


81
# File 'lib/yoomoney/models/deal_list_params.rb', line 81

optional :gt, Time

#gte ⇒ Time?

Parameters:

  • (Time)

Returns:

  • (Time, nil)


86
# File 'lib/yoomoney/models/deal_list_params.rb', line 86

optional :gte, Time

#lt ⇒ Time?

Parameters:

  • (Time)

Returns:

  • (Time, nil)


91
# File 'lib/yoomoney/models/deal_list_params.rb', line 91

optional :lt, Time

#lte ⇒ Time?

Parameters:

  • (Time)

Returns:

  • (Time, nil)


96
# File 'lib/yoomoney/models/deal_list_params.rb', line 96

optional :lte, Time

Instance Method Details

#to_hash ⇒ { gt: Time, gte: Time, lt: Time, lte: Time }

Returns:

  • ({ gt: Time, gte: Time, lt: Time, lte: Time })


113
# File 'sig/yoomoney/models/deal_list_params.rbs', line 113

def to_hash: -> { gt: Time, gte: Time, lt: Time, lte: Time }