Class: GetApisAPIIDVersionsResponseVersionsItem
- Inherits:
-
Dry::Struct
- Object
- Dry::Struct
- GetApisAPIIDVersionsResponseVersionsItem
- Defined in:
- lib/schemas.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.from_dynamic!(d) ⇒ Object
6106 6107 6108 6109 6110 6111 6112 6113 6114 6115 |
# File 'lib/schemas.rb', line 6106 def self.from_dynamic!(d) d = Types::Hash[d] new( created_at: d["createdAt"], id: d["id"], get_apis_api_id_versions_response_versions_item_name: d["name"], release_notes: d["releaseNotes"], updated_at: d["updatedAt"], ) end |
.from_json!(json) ⇒ Object
6117 6118 6119 |
# File 'lib/schemas.rb', line 6117 def self.from_json!(json) from_dynamic!(JSON.parse(json)) end |
Instance Method Details
#to_dynamic ⇒ Object
6121 6122 6123 6124 6125 6126 6127 6128 6129 |
# File 'lib/schemas.rb', line 6121 def to_dynamic { "createdAt" => created_at, "id" => id, "name" => get_apis_api_id_versions_response_versions_item_name, "releaseNotes" => release_notes, "updatedAt" => updated_at, } end |
#to_json(options = nil) ⇒ Object
6131 6132 6133 |
# File 'lib/schemas.rb', line 6131 def to_json( = nil) JSON.generate(to_dynamic, ) end |