tapyrus 0.2.12 → 0.2.13
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/tapyrus/rpc/tapyrus_core_client.rb +14 -3
- data/lib/tapyrus/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 82146cdd150374b76b593273e44c31f4f578d38a1b7dcabea0b0d1fd9acbbb5f
|
4
|
+
data.tar.gz: 8895de33dd2b36412f509c4e35465d513d3d6c98a0bcfc0e7db241a77acd8b3b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e386ac9d8578846437902e78d79b3d4419c85df861c831c92641da94d2d46a37c4793efaafa8e28a1da4466e5347fbe79f66beb0d925fe2bfc83cca1d1e90c99
|
7
|
+
data.tar.gz: a34fa0709093aafb118356b7736b409c733e1185a22538f7e2ed4392dac0ac661a652a31853f652d988860ee66c8b57124815b0fc28dd795b7bea97ad44182c5
|
@@ -24,8 +24,13 @@ module Tapyrus
|
|
24
24
|
@rpc_error = rpc_error
|
25
25
|
end
|
26
26
|
|
27
|
-
|
28
|
-
|
27
|
+
# Return response object as Hash
|
28
|
+
# @return [Hash] response
|
29
|
+
# @option response_code [Integer] HTTP status code
|
30
|
+
# @option response_msg [String] HTTP response body
|
31
|
+
# @option rpc_error [String] error message received from Tapyrus Core
|
32
|
+
def response
|
33
|
+
@response ||=
|
29
34
|
begin
|
30
35
|
m = { response_code: response_code, response_msg: response_msg }
|
31
36
|
m.merge!(rpc_error: rpc_error) if rpc_error
|
@@ -33,8 +38,14 @@ module Tapyrus
|
|
33
38
|
end
|
34
39
|
end
|
35
40
|
|
41
|
+
# Return string that represents error message.
|
42
|
+
# @return [String] error message
|
43
|
+
def message
|
44
|
+
response.to_json
|
45
|
+
end
|
46
|
+
|
36
47
|
def to_s
|
37
|
-
message
|
48
|
+
message
|
38
49
|
end
|
39
50
|
end
|
40
51
|
|
data/lib/tapyrus/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: tapyrus
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.13
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- azuchi
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-
|
11
|
+
date: 2022-02-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: ecdsa
|