Module: NetSuite::Actions::GetSelectValue::Support::ClassMethods

Defined in:
lib/netsuite/actions/get_select_value.rb

Instance Method Summary collapse

Instance Method Details

#get_select_value(options = {}, credentials = {}) ⇒ Object



51
52
53
54
55
56
57
58
59
60
61
62
63
64
# File 'lib/netsuite/actions/get_select_value.rb', line 51

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