lib/zendesk2/ticket_change.rb in zendesk2-1.9.0 vs lib/zendesk2/ticket_change.rb in zendesk2-1.10.0

- old
+ new

@@ -1,13 +1,12 @@ -class Zendesk2 - class TicketChange < AuditEvent - # @return [Integer] Automatically assigned when creating events - identity :id, type: :integer +# frozen_string_literal: true +class Zendesk2::TicketChange < Zendesk2::AuditEvent + # @return [Integer] Automatically assigned when creating events + identity :id, type: :integer - # @return [String] The name of the field that was changed - attribute :field_name, type: :string - # @return [String] The name of the field that was changed - attribute :value, type: :string - # @return [Array] The previous value of the field that was changed - attribute :previous_value, type: :array, parser: lambda{|v, _| [*v]} - end + # @return [String] The name of the field that was changed + attribute :field_name, type: :string + # @return [String] The name of the field that was changed + attribute :value, type: :string + # @return [Array] The previous value of the field that was changed + attribute :previous_value, type: :array, parser: ->(v, _) { [*v] } end