class Enlight::Responses::Response
Attributes
error[RW]
status[RW]
Public Class Methods
new(attributes={})
click to toggle source
# File lib/enlight/responses/response.rb, line 9 def initialize(attributes={}) attributes.deep_transform_keys! { |k| k.to_s.underscore } attributes.each {|k,v| send("#{k}=", v) if respond_to?(k) } end