lib/finapps/rest/order_statuses.rb in finapps-2.1.4 vs lib/finapps/rest/order_statuses.rb in finapps-2.2.1
- old
+ new
@@ -1,13 +1,13 @@
# frozen_string_literal: true
module FinApps
module REST
- class OrderStatuses < FinApps::REST::Resources # :nodoc:
+ class OrderStatuses < FinAppsCore::REST::Resources # :nodoc:
using ObjectExtensions
using StringExtensions
def show(id)
- raise MissingArgumentsError.new 'Missing argument: id.' if id.blank?
+ not_blank(id, :id)
path = "orders/#{ERB::Util.url_encode(id)}/status"
super nil, path
end
end