lib/linodians/employee.rb in linodians-0.0.5 vs lib/linodians/employee.rb in linodians-0.0.6
- old
+ new
@@ -23,9 +23,13 @@
def respond_to?(method, _ = false)
@raw.key?(method) || super
end
+ def to_h
+ @raw.dup
+ end
+
private
def method_missing(method, *args, &block)
return super unless @raw.key?(method)
instance_eval "def #{method}() @raw[:'#{method}'] end"