Skip to content
This repository has been archived by the owner on Nov 21, 2018. It is now read-only.

[#41] Make Response a class with data as Hash instance variable #55

Merged
merged 3 commits into from
Nov 17, 2015

Conversation

kayvonghaffari
Copy link
Contributor

[#41]

end
end

def _deep_freeze(value=@_response)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should this be @_data?

def initialize(status, hash={})
@_status = status
merge!(hash)
@_data = hash || {}
_deep_freeze
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe this should be:

@_data = hash.dup
_deep_freeze(@_data)
freeze

@roberthoner roberthoner self-assigned this Nov 17, 2015
@roberthoner roberthoner added this to the 0.4.0 milestone Nov 17, 2015
@roberthoner
Copy link
Contributor

Code review looks good!

roberthoner pushed a commit that referenced this pull request Nov 17, 2015
[#41] Make Response a class with data as Hash instance variable
@roberthoner roberthoner merged commit ff4f572 into master Nov 17, 2015
@roberthoner roberthoner deleted the issue/41 branch November 17, 2015 18:13
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants