Class: CreateAPIVersionNonGitLinkedCollectionsItem
- Inherits:
-
Dry::Struct
- Object
- Dry::Struct
- CreateAPIVersionNonGitLinkedCollectionsItem
- Defined in:
- lib/schemas.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.from_dynamic!(d) ⇒ Object
35897 35898 35899 35900 35901 35902 |
# File 'lib/schemas.rb', line 35897 def self.from_dynamic!(d) d = Types::Hash[d] new( id: d["id"], ) end |
.from_json!(json) ⇒ Object
35904 35905 35906 |
# File 'lib/schemas.rb', line 35904 def self.from_json!(json) from_dynamic!(JSON.parse(json)) end |
Instance Method Details
#to_dynamic ⇒ Object
35908 35909 35910 35911 35912 |
# File 'lib/schemas.rb', line 35908 def to_dynamic { "id" => id, } end |
#to_json(options = nil) ⇒ Object
35914 35915 35916 |
# File 'lib/schemas.rb', line 35914 def to_json( = nil) JSON.generate(to_dynamic, ) end |