Module: Hive::Util
- Included in:
- REST::Activities, REST::Contacts, REST::Insights, REST::Redirects, REST::Sites
- Defined in:
- lib/hive/util.rb
Instance Method Summary collapse
- #perform(request_method, path, options = {}) ⇒ Object
- #perform_with_cursor(request_method, path, klass, options = {}) ⇒ Object
- #perform_with_object(request_method, path, klass, options = {}) ⇒ Object
Instance Method Details
#perform(request_method, path, options = {}) ⇒ Object
5 6 7 8 |
# File 'lib/hive/util.rb', line 5 def perform(request_method, path, = {}) request = Hive::Request::WixAPIRequest.new(self, request_method, path, ) request.perform end |
#perform_with_cursor(request_method, path, klass, options = {}) ⇒ Object
15 16 17 18 |
# File 'lib/hive/util.rb', line 15 def perform_with_cursor(request_method, path, klass, = {}) request = Hive::Request::WixAPIRequest.new(self, request_method, path, ) request.perform_with_cursor(klass) end |
#perform_with_object(request_method, path, klass, options = {}) ⇒ Object
10 11 12 13 |
# File 'lib/hive/util.rb', line 10 def perform_with_object(request_method, path, klass, = {}) request = Hive::Request::WixAPIRequest.new(self, request_method, path, ) request.perform_with_object(klass) end |