Exception: Ecfr::Client::Error

Inherits:
StandardError
  • Object
show all
Defined in:
lib/ecfr/client.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(record = nil, message = "") ⇒ Error

Returns a new instance of Error.



17
18
19
20
# File 'lib/ecfr/client.rb', line 17

def initialize(record = nil, message = "")
  @record = record
  super(message)
end

Instance Attribute Details

#recordObject (readonly)

Returns the value of attribute record.



15
16
17
# File 'lib/ecfr/client.rb', line 15

def record
  @record
end