class TableauRestApi::Response
Public Class Methods
new(resp)
click to toggle source
# File lib/tableau_rest_api/util/response.rb, line 3 def initialize(resp) @body = resp.body end
Public Instance Methods
parse()
click to toggle source
# File lib/tableau_rest_api/util/response.rb, line 7 def parse @body.length >= 2 ? JSON::parse(@body, object_class: OpenStruct) : nil end