Sha256: 6339f631a5d77dad167cb61bac87c30836ca8d2bb479101f73f3a84267addc22
Contents?: true
Size: 814 Bytes
Versions: 1
Compression:
Stored size: 814 Bytes
Contents
module Humidifier # The payload sent to the shim methods, representing the stack and the options class SdkPayload # The maximum amount of time that Humidifier should wait for a stack to complete a CRUD operation MAX_WAIT = 300 attr_accessor :stack, :options, :max_wait extend Forwardable def_delegators :stack, :id=, :identifier, :name, :to_cf def initialize(stack, options) self.stack = stack self.options = options self.max_wait = options.delete(:max_wait) || MAX_WAIT end # True if the stack and options are the same as the other (used for testing) def ==(other) stack == other.stack && options == other.options end # Merge in options def merge(new_options) self.options = new_options.merge(options) end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
humidifier-0.1.1 | lib/humidifier/sdk_payload.rb |