Skip to content

Commit ed99936

Browse files
fix: Fix update_from_response base resource method to use DeepHashAccessor for nested hashes (#164)
1 parent 541b9b0 commit ed99936

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lib/seam/base_resource.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ def initialize(data, client = nil)
2121
def update_from_response(data)
2222
@data = data
2323
@data.each do |key, value|
24+
value = Seam::DeepHashAccessor.new(value) if value.is_a?(Hash)
2425
instance_variable_set(:"@#{key}", value)
2526
end
2627
end

0 commit comments

Comments
 (0)