Class: ProjectsDeleteRequest
- Inherits:
-
Dry::Struct
- Object
- Dry::Struct
- ProjectsDeleteRequest
- Defined in:
- lib/schemas.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.from_dynamic!(d) ⇒ Object
857 858 859 860 861 862 |
# File 'lib/schemas.rb', line 857 def self.from_dynamic!(d) d = Types::Hash[d] new( ids: d.fetch("ids"), ) end |
.from_json!(json) ⇒ Object
864 865 866 |
# File 'lib/schemas.rb', line 864 def self.from_json!(json) from_dynamic!(JSON.parse(json)) end |
Instance Method Details
#to_dynamic ⇒ Object
868 869 870 871 872 |
# File 'lib/schemas.rb', line 868 def to_dynamic { "ids" => ids, } end |
#to_json(options = nil) ⇒ Object
874 875 876 |
# File 'lib/schemas.rb', line 874 def to_json( = nil) JSON.generate(to_dynamic, ) end |