Exception: PipeLineDealer::Error::InvalidAttribute

Inherits:
PipeLineDealer::Error show all
Defined in:
lib/pipe_line_dealer/error/invalid_attribute.rb

Direct Known Subclasses

InvalidAttributeName, InvalidAttributeValue

Instance Attribute Summary collapse

Attributes inherited from PipeLineDealer::Error

#message

Instance Method Summary collapse

Methods inherited from PipeLineDealer::Error

#to_s

Constructor Details

#initialize(klass, attribute_name) ⇒ InvalidAttribute

Returns a new instance of InvalidAttribute.



6
7
8
9
# File 'lib/pipe_line_dealer/error/invalid_attribute.rb', line 6

def initialize(klass, attribute_name)
  @klass = klass
  @attribute_name = attribute_name
end

Instance Attribute Details

#attribute_nameObject (readonly)

Returns the value of attribute attribute_name.



4
5
6
# File 'lib/pipe_line_dealer/error/invalid_attribute.rb', line 4

def attribute_name
  @attribute_name
end