Sha256: 8afa051c369e20ef5bce80f27399ab8e7d570d11b34fee0f7034ecc4e76ae2ec

Contents?: true

Size: 507 Bytes

Versions: 7

Compression:

Stored size: 507 Bytes

Contents

module NetSuite
  module Records
    class CustomField
      include Support::Fields
      include Support::Records

      attr_reader :internal_id
      attr_accessor :type

      def initialize(attributes = {})
        @internal_id = attributes.delete(:internal_id) || attributes.delete(:@internal_id)
        @type        = attributes.delete(:type) || attributes.delete(:"@xsi:type")
        self.attributes = attributes
      end

      def value
        attributes[:value]
      end

    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
netsuite-0.2.6 lib/netsuite/records/custom_field.rb
netsuite-0.2.5 lib/netsuite/records/custom_field.rb
netsuite-0.2.4 lib/netsuite/records/custom_field.rb
netsuite-0.2.3 lib/netsuite/records/custom_field.rb
netsuite-0.2.2 lib/netsuite/records/custom_field.rb
netsuite-0.2.1 lib/netsuite/records/custom_field.rb
netsuite-0.2.0 lib/netsuite/records/custom_field.rb