Sha256: 4a5ccd06b193d05cf9eab1f6432a1de469ee34efb62531613d0c481dacedf536
Contents?: true
Size: 540 Bytes
Versions: 1
Compression:
Stored size: 540 Bytes
Contents
module NetSuite module RecordRefSupport def self.included(base) base.extend(ClassMethods) end module ClassMethods def record_refs(*names) names.each do |name| record_ref name end end def record_ref(name) name_sym = name.to_sym define_method "#{name}=" do |attrs| attributes[name_sym] = NetSuite::Records::RecordRef.new(attrs) end define_method name_sym do attributes[name_sym] end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
netsuite-0.0.6 | lib/netsuite/record_ref_support.rb |