landslider 0.4.3 → 0.4.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/VERSION.yml CHANGED
@@ -1,5 +1,5 @@
1
1
  ---
2
2
  :major: 0
3
3
  :minor: 4
4
- :patch: 3
4
+ :patch: 4
5
5
  :build:
data/landslider.gemspec CHANGED
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{landslider}
8
- s.version = "0.4.3"
8
+ s.version = "0.4.4"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Jay Prall"]
data/lib/landslider.rb CHANGED
@@ -48,12 +48,12 @@ class Landslider < Handsoap::Service
48
48
  parse_api_version_result(node)
49
49
  end
50
50
 
51
- def get_accounts(session_id)
51
+ def get_accounts(session_id, first_result_position=1, total_results_requested=25)
52
52
  self.session_id = session_id
53
53
  response = invoke("getAccounts", :soap_action => :none) do |message|
54
54
  message.add('accountsRequest') { |ar|
55
- ar.add 'firstResultPosition', 1
56
- ar.add 'totalResultsRequested', 25
55
+ ar.add 'firstResultPosition', first_result_position
56
+ ar.add 'totalResultsRequested', total_results_requested
57
57
  # ar.add('searchCriteria') { |sc|
58
58
  # # just find accounts with an empty main city
59
59
  #
@@ -64,9 +64,9 @@ class LandsliderTest < Test::Unit::TestCase
64
64
 
65
65
  end
66
66
 
67
- def test_landslider_get_account_contacts
67
+ def test_landslider_get_account_contacts
68
68
  # exists on jaytest
69
- result = Landslider.get_account_contacts($sid, 51857822)
69
+ result = Landslider.get_account_contacts($sid, 51857822)
70
70
 
71
71
  validate_standard_api_result result
72
72
  assert_equal Array, result[:contacts].class
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: landslider
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.4.3
5
+ version: 0.4.4
6
6
  platform: ruby
7
7
  authors:
8
8
  - Jay Prall