Class: GetWorkspacesWorkspaceIDGlobalVariablesResponse
- Inherits:
-
Dry::Struct
- Object
- Dry::Struct
- GetWorkspacesWorkspaceIDGlobalVariablesResponse
- Defined in:
- lib/schemas.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.from_dynamic!(d) ⇒ Object
16897 16898 16899 16900 16901 16902 |
# File 'lib/schemas.rb', line 16897 def self.from_dynamic!(d) d = Types::Hash[d] new( values: d["values"]&.map { |x| GlobalVariable.from_dynamic!(x) }, ) end |
.from_json!(json) ⇒ Object
16904 16905 16906 |
# File 'lib/schemas.rb', line 16904 def self.from_json!(json) from_dynamic!(JSON.parse(json)) end |
Instance Method Details
#to_dynamic ⇒ Object
16908 16909 16910 16911 16912 |
# File 'lib/schemas.rb', line 16908 def to_dynamic { "values" => values&.map { |x| x.to_dynamic }, } end |
#to_json(options = nil) ⇒ Object
16914 16915 16916 |
# File 'lib/schemas.rb', line 16914 def to_json( = nil) JSON.generate(to_dynamic, ) end |