Class: GetApisAPIIDTasksTaskIDResponseMeta
- Inherits:
-
Dry::Struct
- Object
- Dry::Struct
- GetApisAPIIDTasksTaskIDResponseMeta
- Defined in:
- lib/schemas.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.from_dynamic!(d) ⇒ Object
5811 5812 5813 5814 5815 5816 5817 5818 |
# File 'lib/schemas.rb', line 5811 def self.from_dynamic!(d) d = Types::Hash[d] new( action: d["action"], model: d["model"], url: d["url"], ) end |
.from_json!(json) ⇒ Object
5820 5821 5822 |
# File 'lib/schemas.rb', line 5820 def self.from_json!(json) from_dynamic!(JSON.parse(json)) end |
Instance Method Details
#to_dynamic ⇒ Object
5824 5825 5826 5827 5828 5829 5830 |
# File 'lib/schemas.rb', line 5824 def to_dynamic { "action" => action, "model" => model, "url" => url, } end |
#to_json(options = nil) ⇒ Object
5832 5833 5834 |
# File 'lib/schemas.rb', line 5832 def to_json( = nil) JSON.generate(to_dynamic, ) end |