lib/autotask_ruby/account.rb in autotask_ruby-0.1.0 vs lib/autotask_ruby/account.rb in autotask_ruby-2.0.0

- old
+ new

@@ -1,14 +1,13 @@ # frozen_string_literal: true module AutotaskRuby - # Represents the Autotask Account Entity - class Account - include Entity + # Represents the Autotask Account Entity + class Account + include Entity - FIELDS = %i[id Address1 City Country CreateDate AccountName AccountNumber Phone PostalCode State Active].freeze - .each do |field| - self.attr_accessor :"#{field.to_s.underscore}" - end - + FIELDS = %i[id Address1 City Country CreateDate AccountName AccountNumber Phone PostalCode State Active].freeze + .each do |field| + attr_accessor :"#{field.to_s.underscore}" end + end end