app/representers/openstax/accounts/api/v1/account_representer.rb in openstax_accounts-4.1.1 vs app/representers/openstax/accounts/api/v1/account_representer.rb in openstax_accounts-5.0.0
- old
+ new
@@ -1,15 +1,16 @@
# A representer for Accounts
#
-# This representer can be used directly or subclassed for an object that delegates
-# openstax_uid, username, first_name, last_name, full_name and title to an account
+# This representer can be used directly or subclassed for an object that
+# delegates openstax_uid, username, first_name, last_name, full_name and
+# title to an account
module OpenStax
module Accounts
module Api
module V1
class AccountRepresenter < Roar::Decorator
- include Roar::Representer::JSON
+ include Roar::JSON
property :openstax_uid,
as: :id,
type: Integer