Sha256: b9ff3d47b285b957bbda8ec8a29a6b1d3fca59bcf70e5e9f8a2036302786eaf6

Contents?: true

Size: 737 Bytes

Versions: 9

Compression:

Stored size: 737 Bytes

Contents

$:.unshift(File.join(File.dirname(__FILE__), 'lib'))
$:.unshift(File.join(File.dirname(__FILE__), 'spec'))

require 'multi_json'
require 'slidepay'
require 'spec_helper'

include SlidePay

SlidePay.configure(development: true)
SlidePay.api_key = ENV["api_key"]

RestClient.proxy = "http://127.0.0.1:8888"


puts "Finding UserMaster objects where first_name 'contains' 'at':"
puts "======================================================================"

users = UserMaster.find(field: "first_name", condition: "contains", value: "at")
if users.is_a? Array
  puts "Retrieved an array of #{users.length} users"

  users.each do |user|
    puts "User found: #{user}"
  end

else
  puts "Did not get an array back!! Retrieved: #{users}"
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
slidepay-0.0.13 scenarios/user_master_find_with_first_name_fragment.rb
slidepay-0.0.12 scenarios/user_master_find_with_first_name_fragment.rb
slidepay-0.0.11 scenarios/user_master_find_with_first_name_fragment.rb
slidepay-0.0.10 scenarios/user_master_find_with_first_name_fragment.rb
slidepay-0.0.9 scenarios/user_master_find_with_first_name_fragment.rb
slidepay-0.0.8 scenarios/user_master_find_with_first_name_fragment.rb
slidepay-0.0.7 scenarios/user_master_find_with_first_name_fragment.rb
slidepay-0.0.6 scenarios/user_master_find_with_first_name_fragment.rb
slidepay-0.0.5 scenarios/user_master_find_with_first_name_fragment.rb