Sha256: c332c573162a99e5af4ad6db796d19abeebde3621aa71170ef117573d721c3f5

Contents?: true

Size: 395 Bytes

Versions: 5

Compression:

Stored size: 395 Bytes

Contents

module Tictail
  module Api
    module Customer
      def get_customer params
        raise InvalidParams.new('No store id spacified') unless params[:store_id]
        customer_id = params[:customer_id] ? "/#{params[:customer_id]}" : ''
        response = get("/v1/stores/#{params[:store_id]}/customers" + customer_id, params.except(:store_id))
        response.body
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
tictail-api-0.1.3 lib/tictail/api/customer.rb
tictail-api-0.1.2 lib/tictail/api/customer.rb
tictail-api-0.1.1 lib/tictail/api/customer.rb
tictail-api-0.0.6 lib/tictail/api/customer.rb
tictail-api-0.0.5 lib/tictail/api/customer.rb