Class: PutApisAPIIDVersionsVersionIDBody
- Inherits:
-
Dry::Struct
- Object
- Dry::Struct
- PutApisAPIIDVersionsVersionIDBody
- Defined in:
- lib/schemas.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.from_dynamic!(d) ⇒ Object
29206 29207 29208 29209 29210 29211 29212 |
# File 'lib/schemas.rb', line 29206 def self.from_dynamic!(d) d = Types::Hash[d] new( put_apis_api_id_versions_version_id_body_name: d.fetch("name"), release_notes: d["releaseNotes"], ) end |
.from_json!(json) ⇒ Object
29214 29215 29216 |
# File 'lib/schemas.rb', line 29214 def self.from_json!(json) from_dynamic!(JSON.parse(json)) end |
Instance Method Details
#to_dynamic ⇒ Object
29218 29219 29220 29221 29222 29223 |
# File 'lib/schemas.rb', line 29218 def to_dynamic { "name" => put_apis_api_id_versions_version_id_body_name, "releaseNotes" => release_notes, } end |
#to_json(options = nil) ⇒ Object
29225 29226 29227 |
# File 'lib/schemas.rb', line 29225 def to_json( = nil) JSON.generate(to_dynamic, ) end |