This repository has been archived on 2023-03-18. You can view files and clone it, but cannot push or open issues or pull requests.
osr-discourse-src/app/models/user_badges.rb
2023-01-09 14:14:59 +00:00

15 lines
325 B
Ruby

# frozen_string_literal: true
# view model for user badges
class UserBadges
alias read_attribute_for_serialization send
attr_accessor :user_badges, :username, :grant_count
def initialize(opts = {})
@user_badges = opts[:user_badges]
@username = opts[:username]
@grant_count = opts[:grant_count]
end
end