Exception: RSpec::Puppet::Errors::RelationshipError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/rspec-puppet/errors.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(from, to) ⇒ RelationshipError

Returns a new instance of RelationshipError.



57
58
59
60
# File 'lib/rspec-puppet/errors.rb', line 57

def initialize(from, to)
  @from = from
  @to = to
end

Instance Attribute Details

#fromObject (readonly)

Returns the value of attribute from.



55
56
57
# File 'lib/rspec-puppet/errors.rb', line 55

def from
  @from
end

#toObject (readonly)

Returns the value of attribute to.



55
56
57
# File 'lib/rspec-puppet/errors.rb', line 55

def to
  @to
end

Instance Method Details

#to_sObject



62
63
64
# File 'lib/rspec-puppet/errors.rb', line 62

def to_s
  message
end