module NetSuite::Actions::GetSelectValue::Support::ClassMethods
Public Instance Methods
get_select_value(options = {}, credentials={})
click to toggle source
# File lib/netsuite/actions/get_select_value.rb, line 43 def get_select_value(options = {}, credentials={}) message = { pageIndex: (options.delete(:pageIndex) || 1), fieldDescription: field_description(options) } response = NetSuite::Actions::GetSelectValue.call([self, message], credentials) if response.success? new(response.body) else raise RecordNotFound, "#{self} with OPTIONS=#{options.inspect} could not be found" end end
Private Instance Methods
field_description(options)
click to toggle source
TODO this goes against the design of the rest of the gem; should be removed in the future
# File lib/netsuite/actions/get_select_value.rb, line 60 def field_description(options) options.inject({}) do |h, (k, v)| h["platformCore:#{k}"] = v h end end