Class: Moov::Models::Components::PushOptionsUpdate
- Inherits:
-
Object
- Object
- Moov::Models::Components::PushOptionsUpdate
- Extended by:
- T::Sig
- Includes:
- Crystalline::MetadataFields
- Defined in:
- lib/moov/models/components/pushoptionsupdate.rb
Overview
Delivery options for push-to-card payouts.
Instance Method Summary collapse
- #==(other) ⇒ Object
-
#initialize(allowed_speeds: nil, deferred_by: nil) ⇒ PushOptionsUpdate
constructor
A new instance of PushOptionsUpdate.
Methods included from Crystalline::MetadataFields
#field, #fields, included, #marshal_single, #to_dict, #to_json
Constructor Details
#initialize(allowed_speeds: nil, deferred_by: nil) ⇒ PushOptionsUpdate
Returns a new instance of PushOptionsUpdate.
23 24 25 26 |
# File 'lib/moov/models/components/pushoptionsupdate.rb', line 23 def initialize(allowed_speeds: nil, 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/pushoptionsupdate.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 |