Skip to content

Commit

Permalink
fix: Fix update_from_response base resource method to use `DeepHash…
Browse files Browse the repository at this point in the history
…Accessor` for nested hashes (#164)
  • Loading branch information
andrii-balitskyi authored Nov 14, 2024
1 parent 541b9b0 commit ed99936
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/seam/base_resource.rb
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ def initialize(data, client = nil)
def update_from_response(data)
@data = data
@data.each do |key, value|
value = Seam::DeepHashAccessor.new(value) if value.is_a?(Hash)
instance_variable_set(:"@#{key}", value)
end
end
Expand Down

0 comments on commit ed99936

Please sign in to comment.