Class: WIS::Client::Opinions
- Inherits:
-
Object
- Object
- WIS::Client::Opinions
- Defined in:
- lib/client/opinions.rb
Class Method Summary collapse
- .find_by_account_id_and_issue_id(account_id, issue_id) ⇒ Object
- .search_known_account_by_issue(account, string) ⇒ Object
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.find_by_account_id_and_issue_id(account_id, issue_id) results = WIS::Client::Tools.get_json("http://api.whereistand.com/opinions?account=" + account_id.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.search_known_account_by_issue(account, string) string = WIS::Client::Tools.uri_escape(string) results = WIS::Client::Tools.get_json("http://api.whereistand.com/opinions?account=" + account.id.to_s + "&issue=" + string) WIS::DOM::AccountIssues.adapt_json(results) end |