Skip to content
Snippets Groups Projects
Commit 104cc5dd authored by Andre Starosta's avatar Andre Starosta
Browse files

parser working

parent 81550ec8
No related branches found
No related tags found
No related merge requests found
...@@ -3,6 +3,25 @@ class String ...@@ -3,6 +3,25 @@ class String
self[/#{"\""}(.*?)#{"\""}/m, 1] self[/#{"\""}(.*?)#{"\""}/m, 1]
end end
end end
def parseCollection searchColl, client
client.communities.all.each do |community|
client.communities.collections(:id => community.id).each do |collection|
if((searchColl.gsub('_',' ') <=> collection.name) == 0)
return(collection.id)
end
end
end
end
def parseCommunity searchComm, client
client.communities.all.each do |community|
if((searchComm.gsub('_',' ') <=> community.name) == 0)
return(community.id)
end
end
end
################################################################################################### ###################################################################################################
$LOAD_PATH.unshift('/home/starosta/c3sl/seppir/scriptsRuby/rest-client-gem/lib') $LOAD_PATH.unshift('/home/starosta/c3sl/seppir/scriptsRuby/rest-client-gem/lib')
#################################### A U T E N T I C A C A O ###################################### #################################### A U T E N T I C A C A O ######################################
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment