Class: PutEnvironmentsEnvironmentIDBodyEnvironmentValuesItemItem
- Inherits:
-
Dry::Struct
- Object
- Dry::Struct
- PutEnvironmentsEnvironmentIDBodyEnvironmentValuesItemItem
- Defined in:
- lib/schemas.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.from_dynamic!(d) ⇒ Object
32061 32062 32063 32064 32065 32066 32067 32068 32069 |
# File 'lib/schemas.rb', line 32061 def self.from_dynamic!(d) d = Types::Hash[d] new( enabled: d["enabled"], key: d["key"], put_environments_environment_id_body_environment_values_item_item_type: d["type"], value: d["value"], ) end |
.from_json!(json) ⇒ Object
32071 32072 32073 |
# File 'lib/schemas.rb', line 32071 def self.from_json!(json) from_dynamic!(JSON.parse(json)) end |
Instance Method Details
#to_dynamic ⇒ Object
32075 32076 32077 32078 32079 32080 32081 32082 |
# File 'lib/schemas.rb', line 32075 def to_dynamic { "enabled" => enabled, "key" => key, "type" => put_environments_environment_id_body_environment_values_item_item_type, "value" => value, } end |
#to_json(options = nil) ⇒ Object
32084 32085 32086 |
# File 'lib/schemas.rb', line 32084 def to_json( = nil) JSON.generate(to_dynamic, ) end |