advantage_quickbase 0.2.1 → 0.2.2
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/lib/quickbase.rb +7 -2
- metadata +1 -1
data/lib/quickbase.rb
CHANGED
|
@@ -17,7 +17,7 @@ module AdvantageQuickbase
|
|
|
17
17
|
}
|
|
18
18
|
request_xml = build_request_xml( data )
|
|
19
19
|
|
|
20
|
-
@http = Net::HTTP.new(
|
|
20
|
+
@http = Net::HTTP.new( base_domain, 443 )
|
|
21
21
|
@http.use_ssl = true
|
|
22
22
|
@http.verify_mode = OpenSSL::SSL::VERIFY_NONE
|
|
23
23
|
|
|
@@ -67,6 +67,7 @@ module AdvantageQuickbase
|
|
|
67
67
|
|
|
68
68
|
def add_record( db_id, new_values )
|
|
69
69
|
xml = build_update_xml( new_values )
|
|
70
|
+
|
|
70
71
|
result = send_request( :addRecord, db_id, nil, xml )
|
|
71
72
|
|
|
72
73
|
get_tag_value( result, :rid )
|
|
@@ -124,7 +125,11 @@ module AdvantageQuickbase
|
|
|
124
125
|
end
|
|
125
126
|
|
|
126
127
|
def base_url
|
|
127
|
-
"https://#{
|
|
128
|
+
"https://#{base_domain}"
|
|
129
|
+
end
|
|
130
|
+
|
|
131
|
+
def base_domain
|
|
132
|
+
"#{@domain}.quickbase.com"
|
|
128
133
|
end
|
|
129
134
|
|
|
130
135
|
def build_request_xml( tags )
|