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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 9619b8bb901abe7085cedda9ca2ed29efb41281125bca6cfe2fd68facf7fc280
4
- data.tar.gz: a1f1d5544976189606b024ce064bdf794d01f646c4ae9b727ff278d071ddb4ce
3
+ metadata.gz: 82146cdd150374b76b593273e44c31f4f578d38a1b7dcabea0b0d1fd9acbbb5f
4
+ data.tar.gz: 8895de33dd2b36412f509c4e35465d513d3d6c98a0bcfc0e7db241a77acd8b3b
5
5
  SHA512:
6
- metadata.gz: '05187916624701c58d88d53bc78ddc576de97ddb1b5b3c5a9066093a57256bad53f8f86c2b126e74db36af4ae5a5ddfd3eb6f9a966672c48f45571e2c60aec61'
7
- data.tar.gz: db6dc58cc66b4a5e754a21a26738d37af025f81f8c3c1b29635218ec685636250a22d55bc9d953e62203289524fd89640bf5951fba245712c6ba8a2b2fb7673c
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
- def message
28
- @message ||=
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.to_s
48
+ message
38
49
  end
39
50
  end
40
51
 
@@ -1,3 +1,3 @@
1
1
  module Tapyrus
2
- VERSION = '0.2.12'
2
+ VERSION = '0.2.13'
3
3
  end
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.12
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-01-06 00:00:00.000000000 Z
11
+ date: 2022-02-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: ecdsa