module Scrivito # @api beta # Represents a Membership of a {User} in a {Workspace} class Membership # @api beta # The {User User's} id # # @return [String] attr_reader :user_id # @api beta # The role associated with this membership. # # @note Currently the only available role is "owner". # # @return [String] the name of role attr_reader :role def initialize(user_id, data) @user_id = user_id @role = data.fetch("role") end end end