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( = {}, credentials={}) = { pageIndex: (.delete(:pageIndex) || 1), fieldDescription: field_description() } response = NetSuite::Actions::GetSelectValue.call([self, ], credentials) if response.success? new(response.body) else raise RecordNotFound, "#{self} with OPTIONS=#{.inspect} could not be found" end end |