Class: GetScimV2UsersUserIDResponseName
- Inherits:
-
Dry::Struct
- Object
- Dry::Struct
- GetScimV2UsersUserIDResponseName
- Defined in:
- lib/schemas.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.from_dynamic!(d) ⇒ Object
15741 15742 15743 15744 15745 15746 15747 |
# File 'lib/schemas.rb', line 15741 def self.from_dynamic!(d) d = Types::Hash[d] new( family_name: d["familyName"], given_name: d["givenName"], ) end |
.from_json!(json) ⇒ Object
15749 15750 15751 |
# File 'lib/schemas.rb', line 15749 def self.from_json!(json) from_dynamic!(JSON.parse(json)) end |
Instance Method Details
#to_dynamic ⇒ Object
15753 15754 15755 15756 15757 15758 |
# File 'lib/schemas.rb', line 15753 def to_dynamic { "familyName" => family_name, "givenName" => given_name, } end |
#to_json(options = nil) ⇒ Object
15760 15761 15762 |
# File 'lib/schemas.rb', line 15760 def to_json( = nil) JSON.generate(to_dynamic, ) end |