Sha256: 5757eb4dfc2fdd96a715a1a94c47804adf1ce8f6f6a688d51e1ebb0fb9785e75

Contents?: true

Size: 371 Bytes

Versions: 22

Compression:

Stored size: 371 Bytes

Contents

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

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

        create nil, "orders/#{ERB::Util.url_encode(token)}"
      end
    end
  end
end

Version data entries

22 entries across 22 versions & 1 rubygems

Version Path
finapps-2.1.4 lib/finapps/rest/order_tokens.rb
finapps-2.1.3 lib/finapps/rest/order_tokens.rb
finapps-2.1.2 lib/finapps/rest/order_tokens.rb
finapps-2.1.1 lib/finapps/rest/order_tokens.rb
finapps-2.0.30 lib/finapps/rest/order_tokens.rb
finapps-2.0.29 lib/finapps/rest/order_tokens.rb
finapps-2.0.28 lib/finapps/rest/order_tokens.rb
finapps-2.0.27 lib/finapps/rest/order_tokens.rb
finapps-2.0.26 lib/finapps/rest/order_tokens.rb
finapps-2.0.25 lib/finapps/rest/order_tokens.rb
finapps-2.0.24 lib/finapps/rest/order_tokens.rb
finapps-2.0.23 lib/finapps/rest/order_tokens.rb
finapps-2.0.22 lib/finapps/rest/order_tokens.rb
finapps-2.0.21 lib/finapps/rest/order_tokens.rb
finapps-2.0.20 lib/finapps/rest/order_tokens.rb
finapps-2.0.19 lib/finapps/rest/order_tokens.rb
finapps-2.0.17 lib/finapps/rest/order_tokens.rb
finapps-2.0.16 lib/finapps/rest/order_tokens.rb
finapps-2.0.15 lib/finapps/rest/order_tokens.rb
finapps-2.0.14 lib/finapps/rest/order_tokens.rb