hotdogprincess 0.1.2 → 0.1.3
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.
- checksums.yaml +4 -4
- data/README.md +2 -4
- data/lib/hotdogprincess/client.rb +6 -1
- data/lib/hotdogprincess/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 5fee42aeeb40e8d26b7cf18eab7efb950c2fbabd
|
|
4
|
+
data.tar.gz: e82be35e10165d0325a503ed25e48141e4443867
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: a248a7fb2de7bf11d18c87ee3c9e6bcbb8cdf6ab118b1a499326f1ea2c3e8bbb670bcf4488c5005400578006cffc820024752a7e3172308933cc608a86b85e5a
|
|
7
|
+
data.tar.gz: d2adcdb072f38bee64e6375ae8c01d8bfc6fb9b7f092e779ba296d5887b19c72eab38e0c21a569158bb6be8f7744fd906fe24c35942a716f83f634e8e0e9c3c8
|
data/README.md
CHANGED
|
@@ -120,14 +120,14 @@ sla = client.sla 1
|
|
|
120
120
|
|
|
121
121
|
# Searching: You search email with either exact match or a substring match.
|
|
122
122
|
client.find_customer_by_email 'joe@exmaple.comz'
|
|
123
|
-
=> [#<Hash id="26553", uid="
|
|
123
|
+
=> [#<Hash id="26553", uid="123/456/Customer/26553",
|
|
124
124
|
|
|
125
125
|
client.find_customer_by_email 'not_found@brandnewusers.io'
|
|
126
126
|
=> []
|
|
127
127
|
|
|
128
128
|
substring = true
|
|
129
129
|
client.find_customer_by_email 'gmail.com', substring
|
|
130
|
-
=> [#<Hash id="26553", uid="
|
|
130
|
+
=> [#<Hash id="26553", uid="123/456/Customer/26553", x ~50
|
|
131
131
|
|
|
132
132
|
# Creating Customers / Tickets: We are using https://github.com/savonrb/gyoku to create XML from Hashes, so see the docs for in-depth XML constructions.
|
|
133
133
|
customer_hash = {
|
|
@@ -302,8 +302,6 @@ client.get 'Customer', "First_Name_like_" => "joe"
|
|
|
302
302
|
=> {"?xml"=>{"@version"=>"1.0", "@encoding"=>"utf-8"}...
|
|
303
303
|
```
|
|
304
304
|
|
|
305
|
-
|
|
306
|
-
|
|
307
305
|
## Contributing
|
|
308
306
|
|
|
309
307
|
1. Fork it
|
|
@@ -116,7 +116,12 @@ module HotDogPrincess
|
|
|
116
116
|
|
|
117
117
|
def status_json(object)
|
|
118
118
|
status = status(object)
|
|
119
|
-
|
|
119
|
+
if status['Entities'] and status['Entities']['Status']
|
|
120
|
+
status_hash = schema_parse(status['Entities']['Status'])
|
|
121
|
+
elsif status['entities'] and status['entities']['Status']
|
|
122
|
+
# With _output_=json the container is lowercase for some reason.
|
|
123
|
+
status_hash = schema_parse(status['entities']['Status'])
|
|
124
|
+
end
|
|
120
125
|
|
|
121
126
|
JSON.generate(status_hash)
|
|
122
127
|
end
|