Sha256: 41810722eb6574fdcc33223c9ff2f1134bbde2f3df15acdf148ffc8397b7b3cb
Contents?: true
Size: 734 Bytes
Versions: 35
Compression:
Stored size: 734 Bytes
Contents
module Recurly class Item < Resource # @return [[CustomField], []] has_many :custom_fields, class_name: :CustomField, readonly: false define_attribute_methods %w( item_code name description external_sku accounting_code revenue_schedule_type state avalara_transaction_type avalara_service_type created_at updated_at deleted_at ) def changed_attributes attrs = super if custom_fields.any?(&:changed?) attrs['custom_fields'] = custom_fields.select(&:changed?) end attrs end def reactivate return false unless link? :reactivate reload follow_link :reactivate true end end end
Version data entries
35 entries across 35 versions & 1 rubygems