Class: BCDD::Process::Output::Properties

Inherits:
Object
  • Object
show all
Defined in:
lib/bcdd/process/output.rb

Overview

:nodoc:

Constant Summary collapse

INVALID_INPUT =
{ invalid_input: ::Hash }.freeze

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeProperties

Returns a new instance of Properties.



10
11
12
13
# File 'lib/bcdd/process/output.rb', line 10

def initialize
  @success = {}
  @failure = {}
end

Instance Attribute Details

#successObject

Returns the value of attribute success.



8
9
10
# File 'lib/bcdd/process/output.rb', line 8

def success
  @success
end

Instance Method Details

#failureObject



25
26
27
# File 'lib/bcdd/process/output.rb', line 25

def failure
  INVALID_INPUT.merge(@failure)
end

#failure=(spec) ⇒ Object



19
20
21
# File 'lib/bcdd/process/output.rb', line 19

def failure=(spec)
  @failure = spec.transform_values(&BCDD::Contract)
end