xrbp 0.2.4 → 0.2.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/xrbp/version.rb +1 -1
- data/lib/xrbp/websocket/cmds/ledger.rb +6 -6
- 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: 90939e974e72207bd282c52c6b65e2ee3e6ceb6bd8564bf53b1b421aa0589b53
|
4
|
+
data.tar.gz: 86d68aefb3a468bf8d767dbf355e1499f0ff849d8833efea0069aa3c537aea2a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b105e3cddae3ee759b16434ef94571d861abb56d9c7008d3a3041dcdb9092262edf26bda522350b1d2c80bd92a29b3150b1d6f7407876242fe3e85650655a0b5
|
7
|
+
data.tar.gz: 1ad2b1d9c6ab0201cbccda42b18290b33cfc091ccae98944dcf80a2d2f5c616d6ea02111e7552d0fd14ceb5d21d689b7543ad41718c785e6d709203a6cae2658
|
data/lib/xrbp/version.rb
CHANGED
@@ -5,21 +5,21 @@ module XRBP
|
|
5
5
|
#
|
6
6
|
# https://developers.ripple.com/ledger.html
|
7
7
|
class Ledger < Command
|
8
|
-
attr_accessor :
|
8
|
+
attr_accessor :ledger_index, :args
|
9
9
|
|
10
|
-
def initialize(
|
11
|
-
@
|
10
|
+
def initialize(ledger_index=nil, args={})
|
11
|
+
@ledger_index = ledger_index
|
12
12
|
@args = args
|
13
13
|
super(to_h)
|
14
14
|
end
|
15
15
|
|
16
|
-
def
|
17
|
-
!!
|
16
|
+
def ledger_index?
|
17
|
+
!!ledger_index
|
18
18
|
end
|
19
19
|
|
20
20
|
def to_h
|
21
21
|
h = args.merge(:command => :ledger)
|
22
|
-
h['ledger_index'] =
|
22
|
+
h['ledger_index'] = ledger_index if ledger_index?
|
23
23
|
return h
|
24
24
|
end
|
25
25
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: xrbp
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Dev Null Productions
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2020-01-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: json
|