Sha256: 313cae837080aa64bfd6fcd81aad322bf7517fab992519910597acad2737805e

Contents?: true

Size: 347 Bytes

Versions: 13

Compression:

Stored size: 347 Bytes

Contents

module Cashstar
  class Client
    # Defines methods related to a Cashstar Order
    module Faceplates
      
      def faceplates(merchant_code)
        response = get("/v2/merchant/#{merchant_code}/faceplate/")
        format.to_s.downcase == 'xml' ? response['merchant'] : response['faceplates']['faceplate']
      end
    
  
    end
  end
end

Version data entries

13 entries across 13 versions & 2 rubygems

Version Path
cashstar-ruby-0.2.4 lib/cashstar/client/faceplates.rb
cashstar-ruby-0.2.3 lib/cashstar/client/faceplates.rb
cashstar-ruby-0.2.2 lib/cashstar/client/faceplates.rb
cashstar-ruby-0.2.1 lib/cashstar/client/faceplates.rb
cashstar-ruby-0.2.0 lib/cashstar/client/faceplates.rb
cashstar-ruby-0.1.8 lib/cashstar/client/faceplates.rb
cashstar-ruby-0.1.7 lib/cashstar/client/faceplates.rb
cashstar-0.1.5 lib/cashstar/client/faceplates.rb
cashstar-0.1.4 lib/cashstar/client/faceplates.rb
cashstar-0.1.3 lib/cashstar/client/faceplates.rb
cashstar-0.1.2 lib/cashstar/client/faceplates.rb
cashstar-0.1.1 lib/cashstar/client/faceplates.rb
cashstar-0.1.0 lib/cashstar/client/faceplates.rb