lib/openstax/exchange/exchange.rb in openstax_exchange-0.1.0 vs lib/openstax/exchange/exchange.rb in openstax_exchange-0.2.0

- old
+ new

@@ -41,9 +41,17 @@ rescue StandardError => error raise ClientError.new("record_multiple_choice_answer failure", error) end end + def self.record_grade(*args) + begin + client.record_grade(*args) + rescue StandardError => error + raise ClientError.new("record_grade failure", error) + end + end + private def self.client begin @client ||= create_client