Class: PuppetfileResolver::Puppetfile::DocumentValidationErrorBase

Inherits:
Object
  • Object
show all
Defined in:
lib/puppetfile-resolver/puppetfile/validation_errors.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(message, puppet_module) ⇒ DocumentValidationErrorBase

Returns a new instance of DocumentValidationErrorBase.



9
10
11
12
# File 'lib/puppetfile-resolver/puppetfile/validation_errors.rb', line 9

def initialize(message, puppet_module)
  @message = message
  @puppet_module = puppet_module
end

Instance Attribute Details

#messageObject

Returns the value of attribute message.



6
7
8
# File 'lib/puppetfile-resolver/puppetfile/validation_errors.rb', line 6

def message
  @message
end

#puppet_moduleObject

Returns the value of attribute puppet_module.



7
8
9
# File 'lib/puppetfile-resolver/puppetfile/validation_errors.rb', line 7

def puppet_module
  @puppet_module
end

Instance Method Details

#to_sObject



14
15
16
# File 'lib/puppetfile-resolver/puppetfile/validation_errors.rb', line 14

def to_s
  "#{puppet_module.name}: #{message}"
end