Sha256: 4e6f703aacd8e32ceadedf5f54776d62f6dd306645fbcc4100fdbebc8a52d95e
Contents?: true
Size: 845 Bytes
Versions: 8
Compression:
Stored size: 845 Bytes
Contents
module NetSuite module Records class Classification include Support::Fields fields :name, :include_children, :is_inactive, :class_translation_list, :subsidiary_list, :custom_field_list attr_reader :internal_id attr_accessor :external_id def initialize(attributes = {}) @internal_id = attributes.delete(:internal_id) || attributes.delete(:@internal_id) @external_id = attributes.delete(:external_id) || attributes.delete(:@external_id) initialize_from_attributes_hash(attributes) end def self.get(options = {}) response = Actions::Get.call(self, options) if response.success? new(response.body) else raise RecordNotFound, "#{self} with OPTIONS=#{options.inspect} could not be found" end end end end end
Version data entries
8 entries across 8 versions & 1 rubygems