Class: WIS::Client::Issues
- Inherits:
-
Object
- Object
- WIS::Client::Issues
- Defined in:
- lib/client/issues.rb
Class Method Summary collapse
Class Method Details
.find_by_id(id) ⇒ Object
8 9 10 |
# File 'lib/client/issues.rb', line 8 def self.find_by_id(id) WIS::DOM::Issue.adapt_json(WIS::Client::Tools.get_json("http://api.whereistand.com/issues/" + id.to_s)) end |
.find_by_id_array(ids) ⇒ Object
12 13 14 15 |
# File 'lib/client/issues.rb', line 12 def self.find_by_id_array(ids) result = WIS::Client::Tools.get_json("http://api.whereistand.com/issues?ids=" + ids.join(",")) WIS::DOM::Issue.adapt_json(result) end |
.search(string) ⇒ Object
2 3 4 5 6 |
# File 'lib/client/issues.rb', line 2 def self.search(string) string = WIS::Client::Tools.uri_escape(string) results = WIS::Client::Tools.get_json("http://api.whereistand.com/issues?search=" + string) WIS::DOM::IssueResults.adapt_json(results) end |