Class: LoginURI
- Inherits:
-
Dry::Struct
- Object
- Dry::Struct
- LoginURI
- Defined in:
- lib/schemas.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.from_dynamic!(d) ⇒ Object
2974 2975 2976 2977 2978 2979 2980 2981 |
# File 'lib/schemas.rb', line 2974 def self.from_dynamic!(d) d = Types::Hash[d] new( match: d["match"], uri: d["uri"], uri_checksum: d["uriChecksum"], ) end |
.from_json!(json) ⇒ Object
2983 2984 2985 |
# File 'lib/schemas.rb', line 2983 def self.from_json!(json) from_dynamic!(JSON.parse(json)) end |
Instance Method Details
#to_dynamic ⇒ Object
2987 2988 2989 2990 2991 2992 2993 |
# File 'lib/schemas.rb', line 2987 def to_dynamic { "match" => match, "uri" => uri, "uriChecksum" => uri_checksum, } end |
#to_json(options = nil) ⇒ Object
2995 2996 2997 |
# File 'lib/schemas.rb', line 2995 def to_json( = nil) JSON.generate(to_dynamic, ) end |