Class: PactBroker::Deployments::Environment

Inherits:
Sequel::Model
  • Object
show all
Defined in:
lib/pact_broker/deployments/environment.rb

Constant Summary collapse

OPEN_STRUCT_TO_JSON =
lambda { |thing| Sequel.object_to_json(thing.collect(&:to_h)) }
JSON_TO_OPEN_STRUCT =
lambda { | json | Sequel.parse_json(json).collect{ | hash| OpenStruct.new(hash) } }