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.



49
50
51
52
# File 'lib/rspec-puppet/errors.rb', line 49

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

Instance Attribute Details

#fromObject (readonly)

Returns the value of attribute from.



47
48
49
# File 'lib/rspec-puppet/errors.rb', line 47

def from
  @from
end

#toObject (readonly)

Returns the value of attribute to.



47
48
49
# File 'lib/rspec-puppet/errors.rb', line 47

def to
  @to
end

Instance Method Details

#to_sObject



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

def to_s
  message
end