Sha256: 40e19534c24ccc94680a2c7f02b3179fabda402fdba5d9e110e78949a0a8d7be
Contents?: true
Size: 659 Bytes
Versions: 16
Compression:
Stored size: 659 Bytes
Contents
module QuizApiClient::Services class ContentExportsService < BaseApiService def create(params:, token: nil) post_to_quiz_api(params: params, token: token) end def show(params:, token: nil) raise 'Content Export Id Required' unless params && params[:id] get_from_quiz_api(params: params, token: token) end private def post_to_quiz_api(params:, token:) client(token: token).post( '/api/content_exports', content_export: params ) end def get_from_quiz_api(params:, token:) client(token: token).get( "/api/content_exports/#{params[:id]}" ) end end end
Version data entries
16 entries across 16 versions & 1 rubygems