Class: Podio::Search
- Inherits:
-
ActivePodio::Base
- Object
- ActivePodio::Base
- Podio::Search
- Defined in:
- lib/podio/models/search.rb
Instance Attribute Summary
Attributes inherited from ActivePodio::Base
#attributes, #error_code, #error_message, #error_parameters, #error_propagate
Class Method Summary collapse
Methods inherited from ActivePodio::Base
#==, #[], #[]=, #as_json, collection, delegate_to_hash, handle_api_errors_for, has_many, has_one, #hash, #initialize, list, member, #new_record?, #persisted?, property, #to_param
Constructor Details
This class inherits a constructor from ActivePodio::Base
Class Method Details
.in_org(org_id, words) ⇒ Object
15 16 17 18 19 20 21 22 |
# File 'lib/podio/models/search.rb', line 15 def in_org(org_id, words) response = Podio.connection.post do |req| req.url "/search/org/#{org_id}/" req.body = words end list response.body end |
.in_space(space_id, words) ⇒ Object
24 25 26 27 28 29 30 31 |
# File 'lib/podio/models/search.rb', line 24 def in_space(space_id, words) response = Podio.connection.post do |req| req.url "/search/space/#{space_id}/" req.body = words end list response.body end |