Class: Vatlayer::Response::Error
- Inherits:
-
Object
- Object
- Vatlayer::Response::Error
- Defined in:
- lib/vatlayer/response/error.rb
Instance Method Summary collapse
-
#initialize(attributes) ⇒ Error
constructor
A new instance of Error.
Constructor Details
#initialize(attributes) ⇒ Error
Returns a new instance of Error.
6 7 8 9 10 11 |
# File 'lib/vatlayer/response/error.rb', line 6 def initialize(attributes) attributes.each do |(key, value)| self.class.class_eval { attr_accessor :"#{key}" } public_send("#{key}=", value) end end |