Module: SeeClickFix::Client::Issues
- Included in:
- SeeClickFix::Client
- Defined in:
- lib/seeclickfix/client/issues.rb
Instance Method Summary collapse
-
#create_issue(summary, lat, lng, options = {}) ⇒ Array<Hashie::Mash>
Use this query to get details on a single issue.
-
#issue_details(issue, options = {}) ⇒ Array<Hashie::Mash>
Use this query to get details on a single issue.
-
#list_issues(location, options = {}) ⇒ Array<Hashie::Mash>
Returns a list of issues for the location Data is returned in chunks of num_results.
Instance Method Details
#create_issue(summary, lat, lng, options = {}) ⇒ Array<Hashie::Mash>
Use this query to get details on a single issue. There may be more information in this query than the issue listing query.
For each service request question provide the following parameters.
77 78 79 |
# File 'lib/seeclickfix/client/issues.rb', line 77 def create_issue(summary, lat, lng, ={}) post("api/issues.json?issue[summary]=#{summary}&issue[lat]=#{lat}&issue[lng]=#{lng}") end |
#issue_details(issue, options = {}) ⇒ Array<Hashie::Mash>
Use this query to get details on a single issue. There may be more information in this query than the issue listing query.
48 49 50 |
# File 'lib/seeclickfix/client/issues.rb', line 48 def issue_details(issue, ={}) get("api/issues/#{issue}.json", ) end |
#list_issues(location, options = {}) ⇒ Array<Hashie::Mash>
Returns a list of issues for the location Data is returned in chunks of num_results. You can increment the page parameter to get the next group of results. If page exceeds the total number of pages the result will be an empty array
36 37 38 |
# File 'lib/seeclickfix/client/issues.rb', line 36 def list_issues(location, ={}) get("api/issues.json?at=#{location}", ) end |