Module: Code42::API::StorePoint
- Included in:
- Client
- Defined in:
- lib/code42/api/store_point.rb
Instance Method Summary collapse
- #find_store_point_by_id(id, params = {}) ⇒ Object
- #find_store_points_by_name(name, params = {}) ⇒ Object
- #store_points(params = {}) ⇒ Object
- #update_store_point(id, params) ⇒ Object
Instance Method Details
#find_store_point_by_id(id, params = {}) ⇒ Object
9 10 11 |
# File 'lib/code42/api/store_point.rb', line 9 def find_store_point_by_id(id, params = {}) object_from_response(Code42::StorePoint, :get, "storePoint/#{id}", params) end |
#find_store_points_by_name(name, params = {}) ⇒ Object
5 6 7 |
# File 'lib/code42/api/store_point.rb', line 5 def find_store_points_by_name(name, params = {}) objects_from_response(Code42::StorePoint, :get, 'storePoint', params.merge(key: 'storepoints', q: name)) end |
#store_points(params = {}) ⇒ Object
13 14 15 |
# File 'lib/code42/api/store_point.rb', line 13 def store_points(params = {}) objects_from_response(Code42::StorePoint, :get, 'storePoint', params.merge(key: 'storepoints')) end |
#update_store_point(id, params) ⇒ Object
17 18 19 |
# File 'lib/code42/api/store_point.rb', line 17 def update_store_point(id, params) object_from_response(Code42::StorePoint, :put, "storePoint/#{id}", params) end |