Class: PostApisAPIIDVersionsResponse
- Inherits:
-
Dry::Struct
- Object
- Dry::Struct
- PostApisAPIIDVersionsResponse
- Defined in:
- lib/schemas.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.from_dynamic!(d) ⇒ Object
19919 19920 19921 19922 19923 19924 19925 19926 19927 19928 |
# File 'lib/schemas.rb', line 19919 def self.from_dynamic!(d) d = Types::Hash[d] new( created_at: d["createdAt"], id: d["id"], post_apis_api_id_versions_response_name: d["name"], release_notes: d["releaseNotes"], updated_at: d["updatedAt"], ) end |
.from_json!(json) ⇒ Object
19930 19931 19932 |
# File 'lib/schemas.rb', line 19930 def self.from_json!(json) from_dynamic!(JSON.parse(json)) end |
Instance Method Details
#to_dynamic ⇒ Object
19934 19935 19936 19937 19938 19939 19940 19941 19942 |
# File 'lib/schemas.rb', line 19934 def to_dynamic { "createdAt" => created_at, "id" => id, "name" => post_apis_api_id_versions_response_name, "releaseNotes" => release_notes, "updatedAt" => updated_at, } end |
#to_json(options = nil) ⇒ Object
19944 19945 19946 |
# File 'lib/schemas.rb', line 19944 def to_json( = nil) JSON.generate(to_dynamic, ) end |