class TransparentData::Response::Struct
Public Class Methods
new(response)
click to toggle source
# File lib/transparent_data/response/struct.rb, line 8 def initialize(response) @response = response end
Public Instance Methods
body()
click to toggle source
# File lib/transparent_data/response/struct.rb, line 12 def body JSON.parse(@response.body) rescue JSON::ParserError @response.body end