Sha256: 4b1f174769fd93b66c6cf3ba77750a1a3e83b6ae2212f910067b352ec8a401f3

Contents?: true

Size: 387 Bytes

Versions: 5

Compression:

Stored size: 387 Bytes

Contents

# frozen_string_literal: true
module FinApps
  module REST
    class OrderStatuses < FinApps::REST::Resources # :nodoc:
      using ObjectExtensions
      using StringExtensions

      def show(id)
        raise MissingArgumentsError.new 'Missing argument: id.' if id.blank?

        path = "orders/#{ERB::Util.url_encode(id)}/status"
        super nil, path
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
finapps-2.1.4 lib/finapps/rest/order_statuses.rb
finapps-2.1.3 lib/finapps/rest/order_statuses.rb
finapps-2.1.2 lib/finapps/rest/order_statuses.rb
finapps-2.1.1 lib/finapps/rest/order_statuses.rb
finapps-2.0.30 lib/finapps/rest/order_statuses.rb