lib/knackhq/client.rb in knackhq-client-0.2.0 vs lib/knackhq/client.rb in knackhq-client-0.2.1

- old
+ new

@@ -47,9 +47,18 @@ :rows_per_page => rows_per_page }) payload = payload_hash(hash_request) translate_payload(payload) { payload } end + def record(object, record_knackhq_id) + hash_request = request + .objects(object) + .records(record_knackhq_id) + .get + payload = payload_hash(hash_request) + translate_payload(payload) { payload } + end + def update_record(object, knackhq_id, json) hash_request = request .objects(object) .records(knackhq_id) .put(:body => json)