Sha256: 7598595bf5431e6ea91a305cf6296d58a58a646da23c6d908121e982855b4350
Contents?: true
Size: 625 Bytes
Versions: 7
Compression:
Stored size: 625 Bytes
Contents
module Yao::Resources class User < Base friendly_attributes :name, :email, :enabled alias enabled? enabled self.service = "identity" self.resource_name = "user" self.resources_name = "users" self.admin = true # @return [Yao::Resources::RoleAssignment] def role_assignment Yao::RoleAssignment.get(user: self) end class << self # @return [Bool] def return_single_on_querying api_verion_v2? end private # @return [Bool] def api_verion_v2? client.url_prefix.to_s.match?(/v2\.0/) end end end end
Version data entries
7 entries across 7 versions & 1 rubygems