lib/netsuite/support/fields.rb in netsuite-0.8.7 vs lib/netsuite/support/fields.rb in netsuite-0.8.8
- old
+ new
@@ -58,9 +58,25 @@
def read_only_field(name)
name_sym = name.to_sym
read_only_fields << name_sym
field name
end
+
+ def search_only_fields(*args)
+ if args.empty?
+ @search_only_fields ||= Set.new
+ else
+ args.each do |arg|
+ search_only_field arg
+ end
+ end
+ end
+
+ def search_only_field(name)
+ name_sym = name.to_sym
+ search_only_fields << name_sym
+ field name
+ end
end
end
end
end