Class: GetEnvironmentsEnvironmentIDResponseEnvironmentValuesItemItem
- Inherits:
-
Dry::Struct
- Object
- Dry::Struct
- GetEnvironmentsEnvironmentIDResponseEnvironmentValuesItemItem
- Defined in:
- lib/schemas.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.from_dynamic!(d) ⇒ Object
9627 9628 9629 9630 9631 9632 9633 9634 9635 |
# File 'lib/schemas.rb', line 9627 def self.from_dynamic!(d) d = Types::Hash[d] new( enabled: d["enabled"], key: d["key"], get_environments_environment_id_response_environment_values_item_item_type: d["type"], value: d["value"], ) end |
.from_json!(json) ⇒ Object
9637 9638 9639 |
# File 'lib/schemas.rb', line 9637 def self.from_json!(json) from_dynamic!(JSON.parse(json)) end |
Instance Method Details
#to_dynamic ⇒ Object
9641 9642 9643 9644 9645 9646 9647 9648 |
# File 'lib/schemas.rb', line 9641 def to_dynamic { "enabled" => enabled, "key" => key, "type" => get_environments_environment_id_response_environment_values_item_item_type, "value" => value, } end |
#to_json(options = nil) ⇒ Object
9650 9651 9652 |
# File 'lib/schemas.rb', line 9650 def to_json( = nil) JSON.generate(to_dynamic, ) end |