Class: APIDetailsGitInfo
- Inherits:
-
Dry::Struct
- Object
- Dry::Struct
- APIDetailsGitInfo
- Defined in:
- lib/schemas.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.from_dynamic!(d) ⇒ Object
35660 35661 35662 35663 35664 35665 35666 35667 35668 35669 |
# File 'lib/schemas.rb', line 35660 def self.from_dynamic!(d) d = Types::Hash[d] new( collection_folder: d["collectionFolder"], domain: d["domain"], organization: d["organization"], repository: d["repository"], schema_folder: d["schemaFolder"], ) end |
.from_json!(json) ⇒ Object
35671 35672 35673 |
# File 'lib/schemas.rb', line 35671 def self.from_json!(json) from_dynamic!(JSON.parse(json)) end |
Instance Method Details
#to_dynamic ⇒ Object
35675 35676 35677 35678 35679 35680 35681 35682 35683 |
# File 'lib/schemas.rb', line 35675 def to_dynamic { "collectionFolder" => collection_folder, "domain" => domain, "organization" => organization, "repository" => repository, "schemaFolder" => schema_folder, } end |
#to_json(options = nil) ⇒ Object
35685 35686 35687 |
# File 'lib/schemas.rb', line 35685 def to_json( = nil) JSON.generate(to_dynamic, ) end |