class YaKassa::V3::Client::Get

Protected Instance Methods

response_body(response) click to toggle source
# File lib/ya_kassa/v3/client/get.rb, line 7
def response_body(response)
  begin
    JSON.parse(response.body)
  rescue JSON::ParserError
    response.body
  end
end
send() click to toggle source
# File lib/ya_kassa/v3/client/get.rb, line 15
def send
  ::HTTParty.get(@url, basic_auth: auth)
end