made method to grab differences in keys arrays
This commit is contained in:
parent
07e5c4ac03
commit
9916bb5c9d
1 changed files with 5 additions and 0 deletions
|
@ -114,6 +114,11 @@ class Pastebinner
|
||||||
pp.map { |p| p['key'] }
|
pp.map { |p| p['key'] }
|
||||||
end
|
end
|
||||||
|
|
||||||
|
# scraped keys difference returned
|
||||||
|
def get_key_diffs(keys1, keys2)
|
||||||
|
keys1 - keys2 | keys2 - keys1
|
||||||
|
end
|
||||||
|
|
||||||
def raw_paste_data(unique_paste_key)
|
def raw_paste_data(unique_paste_key)
|
||||||
response = RestClient::Request.execute(
|
response = RestClient::Request.execute(
|
||||||
method: :get,
|
method: :get,
|
||||||
|
|
Loading…
Add table
Reference in a new issue