lib/oneaccess/response/representer/user_response.rb in oneaccess-0.1.3 vs lib/oneaccess/response/representer/user_response.rb in oneaccess-0.1.4

- old
+ new

@@ -1,14 +1,13 @@ # frozen_string_literal: true + +require_relative "./base_response" require_relative "../../data_object/user" module ONEAccess module Response module Representer - class UserResponse < Representable::Decorator - include Representable::JSON - - property :api_status_code, as: :ApiStatusCode + class UserResponse < BaseResponse property :data, as: :Data, decorator: DataObject::Representer::User, class: DataObject::User end end end end