lib/oneaccess/data_object/representer/user.rb in oneaccess-1.2.0 vs lib/oneaccess/data_object/representer/user.rb in oneaccess-1.3.0
- old
+ new
@@ -1,9 +1,9 @@
# frozen_string_literal: true
-require_relative "../organization_light"
-require_relative "../address"
+require_relative '../organization_light'
+require_relative '../address'
module ONEAccess
module DataObject
module Representer
class User < Representable::Decorator
@@ -14,13 +14,17 @@
property :last_name, as: :LastName, type: String
property :email, as: :Email, type: String
property :phone, as: :Phone, type: String
property :type, as: :Type, type: Integer
property :active, as: :Active
- property :organization, as: :Organization,
- decorator: Representer::OrganizationLight, class: DataObject::OrganizationLight
- property :address, as: :Address,
- decorator: Representer::Address, class: DataObject::Address
+ property :organization,
+ as: :Organization,
+ decorator: Representer::OrganizationLight,
+ class: DataObject::OrganizationLight
+ property :address,
+ as: :Address,
+ decorator: Representer::Address,
+ class: DataObject::Address
end
end
end
end