Class: Moov::Models::Components::PatchWallet
- Inherits:
-
Object
- Object
- Moov::Models::Components::PatchWallet
- Extended by:
- T::Sig
- Includes:
- Crystalline::MetadataFields
- Defined in:
- lib/moov/models/components/patchwallet.rb
Instance Method Summary collapse
- #==(other) ⇒ Object
-
#initialize(name: nil, status: nil, description: nil, metadata: nil) ⇒ PatchWallet
constructor
A new instance of PatchWallet.
Methods included from Crystalline::MetadataFields
#field, #fields, included, #marshal_single, #to_dict, #to_json
Constructor Details
#initialize(name: nil, status: nil, description: nil, metadata: nil) ⇒ PatchWallet
Returns a new instance of PatchWallet.
27 28 29 30 31 32 |
# File 'lib/moov/models/components/patchwallet.rb', line 27 def initialize(name: nil, status: nil, description: nil, metadata: nil) @name = name @status = status @description = description @metadata = end |
Instance Method Details
#==(other) ⇒ Object
35 36 37 38 39 40 41 42 |
# File 'lib/moov/models/components/patchwallet.rb', line 35 def ==(other) return false unless other.is_a? self.class return false unless @name == other.name return false unless @status == other.status return false unless @description == other.description return false unless @metadata == other. true end |