Class: StackOne::Models::Shared::Account
- Inherits:
-
Object
- Object
- StackOne::Models::Shared::Account
- Extended by:
- T::Sig
- Includes:
- Crystalline::MetadataFields
- Defined in:
- lib/stack_one/models/shared/account.rb
Instance Method Summary collapse
- #==(other) ⇒ Object
-
#initialize(addresses: nil, annual_revenue: nil, created_at: nil, description: nil, id: nil, industries: nil, name: nil, owner_id: nil, phone_numbers: nil, remote_id: nil, remote_owner_id: nil, unified_custom_fields: nil, updated_at: nil, website: nil) ⇒ Account
constructor
A new instance of Account.
Methods included from Crystalline::MetadataFields
#field, #fields, included, #marshal_single, #to_dict, #to_json
Constructor Details
#initialize(addresses: nil, annual_revenue: nil, created_at: nil, description: nil, id: nil, industries: nil, name: nil, owner_id: nil, phone_numbers: nil, remote_id: nil, remote_owner_id: nil, unified_custom_fields: nil, updated_at: nil, website: nil) ⇒ Account
Returns a new instance of Account.
45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 |
# File 'lib/stack_one/models/shared/account.rb', line 45 def initialize(addresses: nil, annual_revenue: nil, created_at: nil, description: nil, id: nil, industries: nil, name: nil, owner_id: nil, phone_numbers: nil, remote_id: nil, remote_owner_id: nil, unified_custom_fields: nil, updated_at: nil, website: nil) @addresses = addresses @annual_revenue = annual_revenue @created_at = created_at @description = description @id = id @industries = industries @name = name @owner_id = owner_id @phone_numbers = phone_numbers @remote_id = remote_id @remote_owner_id = remote_owner_id @unified_custom_fields = unified_custom_fields @updated_at = updated_at @website = website end |
Instance Method Details
#==(other) ⇒ Object
63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 |
# File 'lib/stack_one/models/shared/account.rb', line 63 def ==(other) return false unless other.is_a? self.class return false unless @addresses == other.addresses return false unless @annual_revenue == other.annual_revenue return false unless @created_at == other.created_at return false unless @description == other.description return false unless @id == other.id return false unless @industries == other.industries return false unless @name == other.name return false unless @owner_id == other.owner_id return false unless @phone_numbers == other.phone_numbers return false unless @remote_id == other.remote_id return false unless @remote_owner_id == other.remote_owner_id return false unless @unified_custom_fields == other.unified_custom_fields return false unless @updated_at == other.updated_at return false unless @website == other.website true end |