Sha256: 26174a0e2dac849d1701214c0c6b88cf1f1a9422f56ae7909d8562151842641e

Contents?: true

Size: 784 Bytes

Versions: 18

Compression:

Stored size: 784 Bytes

Contents

module Soaspec
  module TestServer
    # Used to simulate requests requiring oauth authentication
    class Invoices
      @user_used = nil

      class << self
        attr_accessor :user_used

        def oauth_headers
          {
            'Content-Type' => 'application/json;charset=UTF-8'
          }
        end

        def oauth_body
          {
            access_token: 'TEST_TOKENiIsImtpZCI6IlRFU1QifQ.AAAABBBBRfaWQiOiJhYWQ5MjY3SIMULATE_LARGE_TOKEN3MmM5OGQ5NGE2YTU5YSIsImV4cCI6MTUyNzU3MTY4Mywic2NvcGUiOltdfQ.3OmCdW7fLZMUST_BE_ABLE_TO_HANDLEgAGaJB0lFYyhaw',
            token_type: 'Bearer',
            expires_in: '86399',
            instance_url: %w[http://this_is_my_instance http://this_is_second_instance].sample
          }
        end
      end
    end
  end
end

Version data entries

18 entries across 18 versions & 1 rubygems

Version Path
soaspec-0.2.29 lib/soaspec/test_server/invoices.rb
soaspec-0.2.28 lib/soaspec/test_server/invoices.rb
soaspec-0.2.27 lib/soaspec/test_server/invoices.rb
soaspec-0.2.26 lib/soaspec/test_server/invoices.rb
soaspec-0.2.25 lib/soaspec/test_server/invoices.rb
soaspec-0.2.23 lib/soaspec/test_server/invoices.rb
soaspec-0.2.22 lib/soaspec/test_server/invoices.rb
soaspec-0.2.21 lib/soaspec/test_server/invoices.rb
soaspec-0.2.20 lib/soaspec/test_server/invoices.rb
soaspec-0.2.19 lib/soaspec/test_server/invoices.rb
soaspec-0.2.18 lib/soaspec/test_server/invoices.rb
soaspec-0.2.17 lib/soaspec/test_server/invoices.rb
soaspec-0.2.16 lib/soaspec/test_server/invoices.rb
soaspec-0.2.15 lib/soaspec/test_server/invoices.rb
soaspec-0.2.14 lib/soaspec/test_server/invoices.rb
soaspec-0.2.13 lib/soaspec/test_server/invoices.rb
soaspec-0.2.12 lib/soaspec/test_server/invoices.rb
soaspec-0.2.11 lib/soaspec/test_server/invoices.rb