Class: Paradocs::Results

Inherits:
Object show all
Defined in:
lib/paradocs/results.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(output, errors, environment) ⇒ Results

Returns a new instance of Results.



5
6
7
# File 'lib/paradocs/results.rb', line 5

def initialize(output, errors, environment)
  @output, @errors, @environment = output, errors, environment
end

Instance Attribute Details

#environmentObject (readonly)

Returns the value of attribute environment.



3
4
5
# File 'lib/paradocs/results.rb', line 3

def environment
  @environment
end

#errorsObject (readonly)

Returns the value of attribute errors.



3
4
5
# File 'lib/paradocs/results.rb', line 3

def errors
  @errors
end

#outputObject (readonly)

Returns the value of attribute output.



3
4
5
# File 'lib/paradocs/results.rb', line 3

def output
  @output
end

Instance Method Details

#valid?Boolean

Returns:

  • (Boolean)


9
10
11
# File 'lib/paradocs/results.rb', line 9

def valid?
  !errors.keys.any?
end