class Scim::Kit::V2::AuthenticationScheme
Represents the available Authentication Schemes.
Constants
- DEFAULTS
Attributes
description[RW]
documentation_uri[RW]
name[RW]
primary[RW]
spec_uri[RW]
type[RW]
Public Class Methods
build_for(type, primary: nil)
click to toggle source
# File lib/scim/kit/v2/authentication_scheme.rb, line 36 def build_for(type, primary: nil) defaults = DEFAULTS[type.to_sym] || {} new do |x| x.type = type x.primary = primary x.description = defaults[:description] x.documentation_uri = defaults[:documentation_uri] x.name = defaults[:name] x.spec_uri = defaults[:spec_uri] end end
from(hash)
click to toggle source
# File lib/scim/kit/v2/authentication_scheme.rb, line 48 def from(hash) x = build_for(hash[:type], primary: hash[:primary]) x.description = hash[:description] x.documentation_uri = hash[:documentationUri] x.name = hash[:name] x.spec_uri = hash[:specUri] x end
new() { |self| ... }
click to toggle source
# File lib/scim/kit/v2/authentication_scheme.rb, line 31 def initialize yield self if block_given? end