Class: Moov::Models::Components::PushOptions

Inherits:
Object
  • Object
show all
Extended by:
T::Sig
Includes:
Crystalline::MetadataFields
Defined in:
lib/moov/models/components/pushoptions.rb

Overview

Delivery options for push-to-card payouts.

Instance Method Summary collapse

Methods included from Crystalline::MetadataFields

#field, #fields, included, #marshal_single, #to_dict, #to_json

Constructor Details

#initialize(allowed_speeds:, deferred_by: nil) ⇒ PushOptions

Returns a new instance of PushOptions.



23
24
25
26
# File 'lib/moov/models/components/pushoptions.rb', line 23

def initialize(allowed_speeds:, deferred_by: nil)
  @allowed_speeds = allowed_speeds
  @deferred_by = deferred_by
end

Instance Method Details

#==(other) ⇒ Object



29
30
31
32
33
34
# File 'lib/moov/models/components/pushoptions.rb', line 29

def ==(other)
  return false unless other.is_a? self.class
  return false unless @allowed_speeds == other.allowed_speeds
  return false unless @deferred_by == other.deferred_by
  true
end