Class: GetScimV2ServiceProviderConfigResponseAuthenticationSchemesItem
- Inherits:
-
Dry::Struct
- Object
- Dry::Struct
- GetScimV2ServiceProviderConfigResponseAuthenticationSchemesItem
- Defined in:
- lib/schemas.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.from_dynamic!(d) ⇒ Object
14998 14999 15000 15001 15002 15003 15004 15005 15006 |
# File 'lib/schemas.rb', line 14998 def self.from_dynamic!(d) d = Types::Hash[d] new( description: d["description"], get_scim_v2_service_provider_config_response_authentication_schemes_item_name: d["name"], spec_uri: d["specUri"], get_scim_v2_service_provider_config_response_authentication_schemes_item_type: d["type"], ) end |
.from_json!(json) ⇒ Object
15008 15009 15010 |
# File 'lib/schemas.rb', line 15008 def self.from_json!(json) from_dynamic!(JSON.parse(json)) end |
Instance Method Details
#to_dynamic ⇒ Object
15012 15013 15014 15015 15016 15017 15018 15019 |
# File 'lib/schemas.rb', line 15012 def to_dynamic { "description" => description, "name" => get_scim_v2_service_provider_config_response_authentication_schemes_item_name, "specUri" => spec_uri, "type" => get_scim_v2_service_provider_config_response_authentication_schemes_item_type, } end |
#to_json(options = nil) ⇒ Object
15021 15022 15023 |
# File 'lib/schemas.rb', line 15021 def to_json( = nil) JSON.generate(to_dynamic, ) end |