Class: Moov::Models::Components::Profile
- Inherits:
-
Object
- Object
- Moov::Models::Components::Profile
- Extended by:
- T::Sig
- Includes:
- Crystalline::MetadataFields
- Defined in:
- lib/moov/models/components/profile.rb
Overview
Describes a Moov account profile. A profile will have a business or an individual, depending on the account’s type.
Instance Method Summary collapse
- #==(other) ⇒ Object
-
#initialize(individual: nil, business: nil, guest: nil) ⇒ Profile
constructor
A new instance of Profile.
Methods included from Crystalline::MetadataFields
#field, #fields, included, #marshal_single, #to_dict, #to_json
Constructor Details
#initialize(individual: nil, business: nil, guest: nil) ⇒ Profile
Returns a new instance of Profile.
24 25 26 27 28 |
# File 'lib/moov/models/components/profile.rb', line 24 def initialize(individual: nil, business: nil, guest: nil) @individual = individual @business = business @guest = guest end |
Instance Method Details
#==(other) ⇒ Object
31 32 33 34 35 36 37 |
# File 'lib/moov/models/components/profile.rb', line 31 def ==(other) return false unless other.is_a? self.class return false unless @individual == other.individual return false unless @business == other.business return false unless @guest == other.guest true end |