Exception: Foobara::DataPath::TooManyValuesAtPathError

Inherits:
StandardError
  • Object
show all
Defined in:
foobara-0.0.110/projects/common/src/data_path.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(path, values) ⇒ TooManyValuesAtPathError

Returns a new instance of TooManyValuesAtPathError.



13
14
15
16
17
18
# File 'foobara-0.0.110/projects/common/src/data_path.rb', line 13

def initialize(path, values)
  self.path = path
  self.values = values

  super(message)
end

Instance Attribute Details

#pathObject

Returns the value of attribute path.



11
12
13
# File 'foobara-0.0.110/projects/common/src/data_path.rb', line 11

def path
  @path
end

#valuesObject

Returns the value of attribute values.



11
12
13
# File 'foobara-0.0.110/projects/common/src/data_path.rb', line 11

def values
  @values
end

Instance Method Details

#messageObject



20
21
22
# File 'foobara-0.0.110/projects/common/src/data_path.rb', line 20

def message
  "Expected only one value to be at #{path} but there were #{values.size}: #{values}"
end