Class: Moov::Models::Components::PatchProfile
- Inherits:
-
Object
- Object
- Moov::Models::Components::PatchProfile
- Extended by:
- T::Sig
- Includes:
- Crystalline::MetadataFields
- Defined in:
- lib/moov/models/components/patchprofile.rb
Overview
Describes the fields available when patching a profile. Each object can be patched independent of patching the other fields.
Instance Method Summary collapse
- #==(other) ⇒ Object
-
#initialize(individual: nil, business: nil) ⇒ PatchProfile
constructor
A new instance of PatchProfile.
Methods included from Crystalline::MetadataFields
#field, #fields, included, #marshal_single, #to_dict, #to_json
Constructor Details
#initialize(individual: nil, business: nil) ⇒ PatchProfile
Returns a new instance of PatchProfile.
23 24 25 26 |
# File 'lib/moov/models/components/patchprofile.rb', line 23 def initialize(individual: nil, business: nil) @individual = individual @business = business end |
Instance Method Details
#==(other) ⇒ Object
29 30 31 32 33 34 |
# File 'lib/moov/models/components/patchprofile.rb', line 29 def ==(other) return false unless other.is_a? self.class return false unless @individual == other.individual return false unless @business == other.business true end |