Exception: Ibex::Configuration::Conflict
- Defined in:
- lib/ibex/configuration.rb
Overview
A fixed/minimum request that contradicts the declared contract.
Instance Attribute Summary collapse
-
#declared ⇒ Object
readonly
: Value.
-
#key ⇒ Object
readonly
: Key.
-
#requested ⇒ Object
readonly
: Value.
Instance Method Summary collapse
-
#initialize(key, declared, requested) ⇒ Conflict
constructor
A new instance of Conflict.
Constructor Details
#initialize(key, declared, requested) ⇒ Conflict
Returns a new instance of Conflict.
274 275 276 277 278 279 280 281 282 283 |
# File 'lib/ibex/configuration.rb', line 274 def initialize(key, declared, requested) @key = key @declared = declared @requested = requested super( "configuration conflict for #{key.name}: " \ "#{declared.origin.label} selected #{declared.value.inspect}, " \ "#{requested.origin.label} requested #{requested.value.inspect}" ) end |
Instance Attribute Details
#declared ⇒ Object (readonly)
: Value
270 271 272 |
# File 'lib/ibex/configuration.rb', line 270 def declared @declared end |
#key ⇒ Object (readonly)
: Key
269 270 271 |
# File 'lib/ibex/configuration.rb', line 269 def key @key end |
#requested ⇒ Object (readonly)
: Value
271 272 273 |
# File 'lib/ibex/configuration.rb', line 271 def requested @requested end |