advantage_quickbase 0.6.2 → 0.6.3

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.
Files changed (2) hide show
  1. data/lib/quickbase.rb +11 -0
  2. metadata +3 -3
data/lib/quickbase.rb CHANGED
@@ -54,6 +54,17 @@ module AdvantageQuickbase
54
54
  get_tag_value( result, :nummatches ).to_i
55
55
  end
56
56
 
57
+ def find( db_id, rid, options={} )
58
+ options[:query] = "{'3'.EX.'#{rid}'}"
59
+ records = self.do_query( db_id, options )
60
+
61
+ if records.length > 0
62
+ return records.first
63
+ else
64
+ return {}
65
+ end
66
+ end
67
+
57
68
  def do_query( db_id, options )
58
69
  # Define the query format
59
70
  if !options[ :fmt ]
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: advantage_quickbase
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.2
4
+ version: 0.6.3
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -13,7 +13,7 @@ date: 2014-06-04 00:00:00.000000000Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: nokogiri
16
- requirement: &70149136650500 !ruby/object:Gem::Requirement
16
+ requirement: &70257826968480 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ! '>='
@@ -21,7 +21,7 @@ dependencies:
21
21
  version: '0'
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *70149136650500
24
+ version_requirements: *70257826968480
25
25
  description: Fast, concise implementation of select Quickbase API functions
26
26
  email: liquid.ise@gmail.com
27
27
  executables: []