You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
def raw
@raw_response
end
def header
hash[:envelope][:header]
end
def body
hash[:envelope][:body]
end
alias to_hash body
def hash
@hash ||= nori.parse(raw)
end
If you can add an Rspec for response class, I can help adding in this method and appropriate rspec for it.
The text was updated successfully, but these errors were encountered:
I started to build a method missing implementation so you could do response.header.security. But realized too late that the nested nature of such data would required a copy of the recursive nested Ostruct solution and I didn't have time to examine this in detail.
The Ostruct solution is tested thoroughly so that's pretty safe, but I'm not sure about the nested version
Also we'd have to decide whether to return nil for missing elements or the standard method missing message
If you can add an Rspec for response class, I can help adding in this method and appropriate rspec for it.
The text was updated successfully, but these errors were encountered: