intacct_ruby 1.5.1 → 1.6.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: f4297e31200d80d9d04562d6e98cc32b3613e5e5
4
- data.tar.gz: c4aad638393e74b723cb70933724beda60e307ee
3
+ metadata.gz: 0722d1ceeb067595ebc1c2e15740c2964f4bbf6b
4
+ data.tar.gz: 87411ccb67d5ea5442d55c62207c4d4ae952f7d0
5
5
  SHA512:
6
- metadata.gz: fef9cf75567f1e2ddd6bef121032dee8ca839492b55f2bc2242bb4e2e02622ceba5661851017055c1f69bc0f790cf267707c2ff22a929228530a57b342263e3a
7
- data.tar.gz: 91b0bafa674f1ae27c25f69efc3f88a78ba51ead17b6ac47654353ea844bea0ff5788334edc542754b5f1365d4bf31ee66c671340a4b674e4065a0d1ca8a1d9f
6
+ metadata.gz: 44027c3c6eddd5ed7956dfbbe0572ee8c6a3b69667a0d35894e9ad818c58ede0fc4919a5c4f3016c05eb8c09e1a08e69843c13531d1a25b8c82e62c8bd1e1bac
7
+ data.tar.gz: 4133a9de6e7ae4d8e9e3f8d00a4e729000acfd69aac2fec6739a13755626f06afa31ee2954738c163bb50956675b44c98bd8b31c17edad9ead4974ab9e1e97c4
@@ -41,8 +41,8 @@ module IntacctRuby
41
41
  @to_xml ||= begin
42
42
  @request = Builder::XmlMarkup.new
43
43
 
44
- request.instruct!
45
- request.request do
44
+ @request.instruct!
45
+ @request.request do
46
46
  control_block
47
47
  operation_block
48
48
  end
@@ -60,8 +60,6 @@ module IntacctRuby
60
60
 
61
61
  private
62
62
 
63
- attr_reader :request, :functions
64
-
65
63
  def method_missing(method_name, *arguments, &block)
66
64
  super unless Function::ALLOWED_TYPES.include? method_name.to_s
67
65
 
@@ -98,35 +96,35 @@ module IntacctRuby
98
96
  end
99
97
 
100
98
  def control_block
101
- request.control do
102
- request.senderid @opts[:senderid]
103
- request.password @opts[:sender_password]
99
+ @request.control do
100
+ @request.senderid @opts[:senderid]
101
+ @request.password @opts[:sender_password]
104
102
 
105
103
  # As recommended by Intacct API reference. This ID should be unique
106
104
  # to the call: it's used to associate a response with a request.
107
- request.controlid timestamp
108
- request.uniqueid @opts[:uniqueid]
109
- request.dtdversion @opts[:dtdversion]
110
- request.includewhitespace @opts[:includewhitespace]
105
+ @request.controlid timestamp
106
+ @request.uniqueid @opts[:uniqueid]
107
+ @request.dtdversion @opts[:dtdversion]
108
+ @request.includewhitespace @opts[:includewhitespace]
111
109
  end
112
110
  end
113
111
 
114
112
  def authentication_block
115
- request.authentication do
116
- request.login do
117
- request.userid @opts[:userid]
118
- request.companyid @opts[:companyid]
119
- request.password @opts[:user_password]
113
+ @request.authentication do
114
+ @request.login do
115
+ @request.userid @opts[:userid]
116
+ @request.companyid @opts[:companyid]
117
+ @request.password @opts[:user_password]
120
118
  end
121
119
  end
122
120
  end
123
121
 
124
122
  def operation_block
125
- request.operation transaction: @opts[:transaction] do
123
+ @request.operation transaction: @opts[:transaction] do
126
124
  authentication_block
127
- request.content do
125
+ @request.content do
128
126
  functions.each do |function|
129
- request << function.to_xml
127
+ @request << function.to_xml
130
128
  end
131
129
  end
132
130
  end
@@ -1,3 +1,3 @@
1
1
  module IntacctRuby
2
- VERSION = '1.5.1'.freeze
2
+ VERSION = '1.6.0'.freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: intacct_ruby
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.5.1
4
+ version: 1.6.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jeremy Zornow
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2017-07-28 00:00:00.000000000 Z
11
+ date: 2017-07-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler