# frozen_string_literal: true module Payment module Manager class Plan attr_accessor :id attr_accessor :name attr_accessor :description attr_accessor :price attr_accessor :installments attr_accessor :duration_in_months attr_accessor :details def initialize(args = nil) args&.each do |k, v| instance_variable_set("@#{k}", v) unless v.nil? end end def eql?(other) id == other.id && name == other.name && description == other.description && price == other.price end end end end