Class: CreateAPIVersionGitLinkedSchemasItem
- Inherits:
-
Dry::Struct
- Object
- Dry::Struct
- CreateAPIVersionGitLinkedSchemasItem
- Defined in:
- lib/schemas.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.from_dynamic!(d) ⇒ Object
35823 35824 35825 35826 35827 35828 |
# File 'lib/schemas.rb', line 35823 def self.from_dynamic!(d) d = Types::Hash[d] new( directory_path: d["directoryPath"], ) end |
.from_json!(json) ⇒ Object
35830 35831 35832 |
# File 'lib/schemas.rb', line 35830 def self.from_json!(json) from_dynamic!(JSON.parse(json)) end |
Instance Method Details
#to_dynamic ⇒ Object
35834 35835 35836 35837 35838 |
# File 'lib/schemas.rb', line 35834 def to_dynamic { "directoryPath" => directory_path, } end |
#to_json(options = nil) ⇒ Object
35840 35841 35842 |
# File 'lib/schemas.rb', line 35840 def to_json( = nil) JSON.generate(to_dynamic, ) end |