Class: QueueryClient::ManifestFile
- Inherits:
-
Object
- Object
- QueueryClient::ManifestFile
show all
- Defined in:
- lib/queuery_client/manifest_file.rb
Overview
Instance Method Summary
collapse
Instance Method Details
#column_types ⇒ Object
9
10
11
12
13
14
15
16
17
18
|
# File 'lib/queuery_client/manifest_file.rb', line 9
def column_types
@column_types ||=
begin
f = open
j = JSON.load(f)
j['schema']['elements'].map{|x| x['type']['base']}
ensure
f.close
end
end
|
#manifest_object? ⇒ Boolean
5
6
7
|
# File 'lib/queuery_client/manifest_file.rb', line 5
def manifest_object?
/\.manifest(?:\.|\z)/ =~ File.basename(key)
end
|