Class: GetScimV2UsersUserIDResponse
- Inherits:
-
Dry::Struct
- Object
- Dry::Struct
- GetScimV2UsersUserIDResponse
- Defined in:
- lib/schemas.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.from_dynamic!(d) ⇒ Object
15788 15789 15790 15791 15792 15793 15794 15795 15796 15797 15798 15799 |
# File 'lib/schemas.rb', line 15788 def self.from_dynamic!(d) d = Types::Hash[d] new( active: d["active"], external_id: d["externalId"], id: d["id"], get_scim_v2_users_user_id_response_meta: d["meta"] ? GetScimV2UsersUserIDResponseMeta.from_dynamic!(d["meta"]) : nil, get_scim_v2_users_user_id_response_name: d["name"] ? GetScimV2UsersUserIDResponseName.from_dynamic!(d["name"]) : nil, schemas: d["schemas"], user_name: d["userName"], ) end |
.from_json!(json) ⇒ Object
15801 15802 15803 |
# File 'lib/schemas.rb', line 15801 def self.from_json!(json) from_dynamic!(JSON.parse(json)) end |
Instance Method Details
#to_dynamic ⇒ Object
15805 15806 15807 15808 15809 15810 15811 15812 15813 15814 15815 |
# File 'lib/schemas.rb', line 15805 def to_dynamic { "active" => active, "externalId" => external_id, "id" => id, "meta" => &.to_dynamic, "name" => get_scim_v2_users_user_id_response_name&.to_dynamic, "schemas" => schemas, "userName" => user_name, } end |
#to_json(options = nil) ⇒ Object
15817 15818 15819 |
# File 'lib/schemas.rb', line 15817 def to_json( = nil) JSON.generate(to_dynamic, ) end |