Sha256: ba7c2833a80396dbe1ced762d0feca22e4292253395bfda9943e754b12b1e67a
Contents?: true
Size: 412 Bytes
Versions: 47
Compression:
Stored size: 412 Bytes
Contents
module ZuoraConnect class Login def initialize (fields) self.attr_builder("client",::ZuoraAPI::Login.new(fields.map{|k,v| [k.to_sym, v]}.to_h)) if fields["tenant_type"] == "Zuora" fields.each do |k,v| self.attr_builder(k,v) end end def attr_builder(field,val) singleton_class.class_eval { attr_accessor "#{field}" } send("#{field}=", val) end end end
Version data entries
47 entries across 47 versions & 1 rubygems