loco_bill 0.0.4 → 0.0.5

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.
@@ -3,7 +3,7 @@ module LocoBill
3
3
  API_VERSION = "1.0" # :nodoc:
4
4
 
5
5
  class << self
6
- attr_accessor :session_id, :transaction_id
6
+ attr_accessor :session_id, :transaction_id, :debug
7
7
  attr_writer :application_key, :username, :password, :org_id
8
8
  end
9
9
 
@@ -72,7 +72,7 @@ module LocoBill
72
72
  end
73
73
 
74
74
  def api(xml_body)
75
- # puts "XML BODY: #{xml_body}"
75
+ puts "XML BODY: #{xml_body}" if LocoBill::Configuration.debug
76
76
  https = Net::HTTP.new(LocoBill::Configuration.server, 443)
77
77
  https.use_ssl = true
78
78
  https.read_timeout=5 # 5 second timeout
@@ -93,7 +93,7 @@ module LocoBill
93
93
  end
94
94
 
95
95
  def process_response(raw_response)
96
- # puts "RAW RESPONSE: #{raw_response}"
96
+ puts "RAW RESPONSE: #{raw_response}" if LocoBill::Configuration.debug
97
97
  res = Hash.from_xml(raw_response)['response']
98
98
  res = res["#{@action}result"] || res["operationresult"]
99
99
  res.symbolize_keys!
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 0
8
- - 4
9
- version: 0.0.4
8
+ - 5
9
+ version: 0.0.5
10
10
  platform: ruby
11
11
  authors:
12
12
  - chris mcc
@@ -14,7 +14,7 @@ autorequire:
14
14
  bindir: bin
15
15
  cert_chain: []
16
16
 
17
- date: 2010-06-15 00:00:00 -04:00
17
+ date: 2010-06-16 00:00:00 -04:00
18
18
  default_executable:
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency