Exception: SmarterCSV::DuplicateHeaders

Inherits:
SmarterCSVException show all
Defined in:
lib/smarter_csv/errors.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(message, headers = []) ⇒ DuplicateHeaders

Returns a new instance of DuplicateHeaders.



15
16
17
18
# File 'lib/smarter_csv/errors.rb', line 15

def initialize(message, headers = [])
  super(message)
  @headers = headers
end

Instance Attribute Details

#headersObject (readonly)

Returns the value of attribute headers.



13
14
15
# File 'lib/smarter_csv/errors.rb', line 13

def headers
  @headers
end