indium 0.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/lib/indium.rb +14 -0
- metadata +58 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: da417d600b6a8b6428b730fda52dea86bde8c70c
|
4
|
+
data.tar.gz: f452cc3254c9ff6c0b165355d46ce62567e32dbb
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 5c3377df374901583cc92435712f9f282e0262b18dbc29c0c81ab45ea3c7852a79468a5993331cc0f1dd8a38abcc49fa8fb7978fe670e5554c3fef97d869652a
|
7
|
+
data.tar.gz: eaddc915158d6d1697a7ab8032375ffc6a32dacc1fb9f7ede7e6d0f70aedce1ab3842cb7154f2fd1f5a97829020f43b801d9bf03c558eea3b1e951b9c5eadf63
|
data/lib/indium.rb
ADDED
@@ -0,0 +1,14 @@
|
|
1
|
+
require 'bigchaindb'
|
2
|
+
|
3
|
+
class Indium
|
4
|
+
attr_reader :asset_id
|
5
|
+
|
6
|
+
def initialize(asset_id)
|
7
|
+
@asset_id = asset_id
|
8
|
+
@ipdb = {"url" => "https://test.ipdb.io/api/v1"}
|
9
|
+
end
|
10
|
+
|
11
|
+
def balance(pubkey)
|
12
|
+
Bdb.balance_asset(@ipdb, public_key, @asset_id)
|
13
|
+
end
|
14
|
+
end
|
metadata
ADDED
@@ -0,0 +1,58 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: indium
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.0.1
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Nilesh Trivedi
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2017-10-23 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: bigchaindb
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - ">="
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '0'
|
20
|
+
type: :runtime
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - ">="
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '0'
|
27
|
+
description: Library for querying/posting Indium transactions on IPDB
|
28
|
+
email: github@nileshtrivedi.com
|
29
|
+
executables: []
|
30
|
+
extensions: []
|
31
|
+
extra_rdoc_files: []
|
32
|
+
files:
|
33
|
+
- lib/indium.rb
|
34
|
+
homepage: https://github.com/nileshtrivedi/indium-ruby
|
35
|
+
licenses:
|
36
|
+
- MIT
|
37
|
+
metadata: {}
|
38
|
+
post_install_message:
|
39
|
+
rdoc_options: []
|
40
|
+
require_paths:
|
41
|
+
- lib
|
42
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
43
|
+
requirements:
|
44
|
+
- - ">="
|
45
|
+
- !ruby/object:Gem::Version
|
46
|
+
version: '0'
|
47
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
48
|
+
requirements:
|
49
|
+
- - ">="
|
50
|
+
- !ruby/object:Gem::Version
|
51
|
+
version: '0'
|
52
|
+
requirements: []
|
53
|
+
rubyforge_project:
|
54
|
+
rubygems_version: 2.6.11
|
55
|
+
signing_key:
|
56
|
+
specification_version: 4
|
57
|
+
summary: Indium - asset on IPDB
|
58
|
+
test_files: []
|