kijirest-client 0.0.1 → 0.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +8 -8
- data/lib/kijirest/client.rb +11 -0
- data/lib/kijirest/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
---
|
|
2
2
|
!binary "U0hBMQ==":
|
|
3
3
|
metadata.gz: !binary |-
|
|
4
|
-
|
|
4
|
+
ZDY5ZTdkNjM3ZmM1MTNmNzYzYjlhMzk3ZDFkMmNiMzczMjRmYjUyZQ==
|
|
5
5
|
data.tar.gz: !binary |-
|
|
6
|
-
|
|
6
|
+
NGIxODI0YTc4ZGQ0MTYyMTFlMWFkNzU1MTU4NGQ4YTQ4ZTA2YWNiZA==
|
|
7
7
|
!binary "U0hBNTEy":
|
|
8
8
|
metadata.gz: !binary |-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
9
|
+
OTA5Yzg3YmYyOWIxOTBlYWJlMzViNmFiMzUyODc5Y2Q4NjVlZTdhNjY5MDgz
|
|
10
|
+
MTg4NDljYzIxZWNlOTM0NTk3ZmU3ZWZlMDQ0NzA5MDAxZDY0MjliY2IzMTk4
|
|
11
|
+
OGNiZDk0MzFiY2VlNjRjYWU2MjAyNTVkMzUxZTNjZTY3OWFjMjU=
|
|
12
12
|
data.tar.gz: !binary |-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
13
|
+
OWJmMDI0MjIzZDI5NDYzM2FmYzMwMTQ5MDhlYWFhYjRhNWJjM2Q4MTEzMzli
|
|
14
|
+
MmM5OWFkN2Y1NDYxZjY1ZDhjOTNiYjQ1NDQ3MWRlMmFlZjg4ZWIyZmRmZjJm
|
|
15
|
+
NjBhMjRhNWMyYTBkNWIxZDJkNGJlMzQ3ZmZjY2FjY2NmY2MxZDQ=
|
data/lib/kijirest/client.rb
CHANGED
|
@@ -72,6 +72,17 @@ module KijiRest
|
|
|
72
72
|
get_json("#{rows_endpoint(instance_name, table_name)}/#{rowkey}", filters)
|
|
73
73
|
end
|
|
74
74
|
|
|
75
|
+
# Returns a single row (identified by the specified entity_id) from the given table.
|
|
76
|
+
# param: instance_name is the name of the instance
|
|
77
|
+
# param: table_name is the name of the table
|
|
78
|
+
# param: entity_id is a string of an array consists of predefined components to fetch
|
|
79
|
+
# param: filters is a hash containing any filters to apply which will get translated as
|
|
80
|
+
# query parameters in the REST call.
|
|
81
|
+
def row_entityid(instance_name, table_name, entity_id, filters= {})
|
|
82
|
+
eid_filter = {:eid => entity_id}
|
|
83
|
+
get_json(rows_endpoint(instance_name, table_name), filters.merge(eid_filter))
|
|
84
|
+
end
|
|
85
|
+
|
|
75
86
|
# Returns a list of the tables in the given instance.
|
|
76
87
|
# param: instance_name is the name of the instance
|
|
77
88
|
def tables(instance_name)
|
data/lib/kijirest/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: kijirest-client
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.0.
|
|
4
|
+
version: 0.0.2
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- wibidata
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2013-
|
|
11
|
+
date: 2013-07-09 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: bundler
|