Class: WIS::Client::Opinions

Inherits:
Object
  • Object
show all
Defined in:
lib/client/opinions.rb

Class Method Summary collapse

Class Method Details

.find_by_account_id_and_issue_id(account_id, issue_id) ⇒ Object



3
4
5
6
# File 'lib/client/opinions.rb', line 3

def self.(, issue_id)
	results = WIS::Client::Tools.get_json("http://api.whereistand.com/opinions?account=" + .to_s + "&issue=" + issue_id.to_s)
	WIS::DOM::Opinion.adapt_json(results)
end

.search_known_account_by_issue(account, string) ⇒ Object



8
9
10
11
12
# File 'lib/client/opinions.rb', line 8

def self.(, string)
	string = WIS::Client::Tools.uri_escape(string)
	results = WIS::Client::Tools.get_json("http://api.whereistand.com/opinions?account=" + .id.to_s + "&issue=" + string)
	WIS::DOM::AccountIssues.adapt_json(results)
end