Class: Vatlayer::Response::Error

Inherits:
Object
  • Object
show all
Defined in:
lib/vatlayer/response/error.rb

Instance Method Summary collapse

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