Sha256: 41287481d47f99814a3296472ce52707b0215333b79df568a7064cae863c5747
Contents?: true
Size: 619 Bytes
Versions: 1
Compression:
Stored size: 619 Bytes
Contents
# 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
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
payment-manager-client-0.3.0 | lib/payment/manager/plan.rb |