Method: NucleusApi::ClientViewGoalData#==

Defined in:
lib/nucleus_api/models/client_view_goal_data.rb

#==(o) ⇒ Object

Checks equality by comparing each attribute.

Parameters:

  • to be compared



169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
# File 'lib/nucleus_api/models/client_view_goal_data.rb', line 169

def ==(o)
  return true if self.equal?(o)
  self.class == o.class &&
      accounts == o.accounts &&
      accumulation_horizon == o.accumulation_horizon &&
      decumulation_horizon == o.decumulation_horizon &&
      goal_amount == o.goal_amount &&
      goal_asset_size_by_goal == o.goal_asset_size_by_goal &&
      goal_asset_size_by_goal_date == o.goal_asset_size_by_goal_date &&
      goal_category == o.goal_category &&
      goal_create_date == o.goal_create_date &&
      goal_id == o.goal_id &&
      goal_name == o.goal_name &&
      goal_type == o.goal_type &&
      goal_update_date == o.goal_update_date &&
      is_decumulation == o.is_decumulation &&
      portfolios == o.portfolios
end