postman_mta 0.1.6 → 0.1.7
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: fab550588eda2e9d22a008b8acbd4004922fa042
|
4
|
+
data.tar.gz: 2b28cbeb65d3e81abaef24122bf1228b3b77e0ea
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5bb1c93d360b9dfbf0fdc2169ff5411747fd03e3e74e57eac9d08e3f60a56292ed86573ca9f4369259d8c2098cbaadff7336b503b5ef245828ec4b47137a1e66
|
7
|
+
data.tar.gz: 8b02e0f717d57da96b8ba2917aba388740a4d8186674ca541956f644c535e62a4046e0ed7a4f4d89051bca501972fe3531c6d1d53ea05655a1248181f7a7cef6
|
@@ -1,5 +1,7 @@
|
|
1
1
|
module PostmanMta
|
2
2
|
class ApiClient
|
3
|
+
attr_reader :response_body, :response_status
|
4
|
+
|
3
5
|
[:get, :post, :put, :patch, :delete].each do |type|
|
4
6
|
define_method type do |url, options = {}|
|
5
7
|
perform_request(type.to_s.upcase, url, options)
|
@@ -12,7 +14,10 @@ module PostmanMta
|
|
12
14
|
api_request = ::PostmanMta::ApiRequest.new(request_type, path, options)
|
13
15
|
response = api_request.perform
|
14
16
|
|
15
|
-
|
17
|
+
@response_body = response.parsed_response
|
18
|
+
@response_status = response.code
|
19
|
+
|
20
|
+
{ json: response_body, status: response_status }
|
16
21
|
end
|
17
22
|
end
|
18
23
|
end
|
data/lib/postman_mta/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: postman_mta
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Igor Malinovskiy
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-
|
11
|
+
date: 2017-11-28 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -129,6 +129,7 @@ files:
|
|
129
129
|
- app/models/postman_mta/application_model.rb
|
130
130
|
- app/models/postman_mta/attachment.rb
|
131
131
|
- app/models/postman_mta/conversation.rb
|
132
|
+
- app/models/postman_mta/credential.rb
|
132
133
|
- app/models/postman_mta/domain.rb
|
133
134
|
- app/models/postman_mta/label.rb
|
134
135
|
- app/models/postman_mta/message.rb
|