Class: Moov::Models::Components::CreateBusinessError
- Inherits:
-
Object
- Object
- Moov::Models::Components::CreateBusinessError
- Extended by:
- T::Sig
- Includes:
- Crystalline::MetadataFields
- Defined in:
- lib/moov/models/components/createbusinesserror.rb
Instance Method Summary collapse
- #==(other) ⇒ Object
-
#initialize(legal_business_name: nil, doing_business_as: nil, business_type: nil, address: nil, phone: nil, email: nil, website: nil, description: nil, tax_id: nil, industry_codes: nil, industry: nil, primary_regulator: nil) ⇒ CreateBusinessError
constructor
A new instance of CreateBusinessError.
Methods included from Crystalline::MetadataFields
#field, #fields, included, #marshal_single, #to_dict, #to_json
Constructor Details
#initialize(legal_business_name: nil, doing_business_as: nil, business_type: nil, address: nil, phone: nil, email: nil, website: nil, description: nil, tax_id: nil, industry_codes: nil, industry: nil, primary_regulator: nil) ⇒ CreateBusinessError
Returns a new instance of CreateBusinessError.
41 42 43 44 45 46 47 48 49 50 51 52 53 54 |
# File 'lib/moov/models/components/createbusinesserror.rb', line 41 def initialize(legal_business_name: nil, doing_business_as: nil, business_type: nil, address: nil, phone: nil, email: nil, website: nil, description: nil, tax_id: nil, industry_codes: nil, industry: nil, primary_regulator: nil) @legal_business_name = legal_business_name @doing_business_as = doing_business_as @business_type = business_type @address = address @phone = phone @email = email @website = website @description = description @tax_id = tax_id @industry_codes = industry_codes @industry = industry @primary_regulator = primary_regulator end |
Instance Method Details
#==(other) ⇒ Object
57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 |
# File 'lib/moov/models/components/createbusinesserror.rb', line 57 def ==(other) return false unless other.is_a? self.class return false unless @legal_business_name == other.legal_business_name return false unless @doing_business_as == other.doing_business_as return false unless @business_type == other.business_type return false unless @address == other.address return false unless @phone == other.phone return false unless @email == other.email return false unless @website == other.website return false unless @description == other.description return false unless @tax_id == other.tax_id return false unless @industry_codes == other.industry_codes return false unless @industry == other.industry return false unless @primary_regulator == other.primary_regulator true end |