lib/oneaccess/data_object/representer/industry.rb in oneaccess-1.2.0 vs lib/oneaccess/data_object/representer/industry.rb in oneaccess-1.3.0
- old
+ new
@@ -1,8 +1,8 @@
# frozen_string_literal: true
-require_relative "../industry"
+require_relative '../industry'
# declare industry to avoid circular dependency
# rubocop:disable Style/ClassAndModuleChildren
class ONEAccess::DataObject::Industry; end
class ONEAccess::DataObject::Representer::Industry < Representable::Decorator; end
@@ -15,11 +15,13 @@
include Representable::JSON
property :id, as: :Id, type: Integer
property :name, as: :Name, type: String
property :code, as: :Code, type: String
- property :parent, as: :Parent,
- decorator: Representer::Industry, class: DataObject::Industry
+ property :parent,
+ as: :Parent,
+ decorator: Representer::Industry,
+ class: DataObject::Industry
end
end
end
end