Class: GetScimV2ResourceTypesResponseItem
- Inherits:
-
Dry::Struct
- Object
- Dry::Struct
- GetScimV2ResourceTypesResponseItem
- Defined in:
- lib/schemas.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.from_dynamic!(d) ⇒ Object
14950 14951 14952 14953 14954 14955 14956 14957 14958 14959 14960 14961 |
# File 'lib/schemas.rb', line 14950 def self.from_dynamic!(d) d = Types::Hash[d] new( description: d["description"], endpoint: d["endpoint"], id: d["id"], get_scim_v2_resource_types_response_item_name: d["name"], schema: d["schema"], schema_extensions: d["schemaExtensions"]&.map { |x| GetScimV2ResourceTypesResponseItemSchemaExtensionsItem.from_dynamic!(x) }, schemas: d["schemas"], ) end |
.from_json!(json) ⇒ Object
14963 14964 14965 |
# File 'lib/schemas.rb', line 14963 def self.from_json!(json) from_dynamic!(JSON.parse(json)) end |
Instance Method Details
#to_dynamic ⇒ Object
14967 14968 14969 14970 14971 14972 14973 14974 14975 14976 14977 |
# File 'lib/schemas.rb', line 14967 def to_dynamic { "description" => description, "endpoint" => endpoint, "id" => id, "name" => get_scim_v2_resource_types_response_item_name, "schema" => schema, "schemaExtensions" => schema_extensions&.map { |x| x.to_dynamic }, "schemas" => schemas, } end |
#to_json(options = nil) ⇒ Object
14979 14980 14981 |
# File 'lib/schemas.rb', line 14979 def to_json( = nil) JSON.generate(to_dynamic, ) end |