module Vhx::ApiOperations::List::ClassMethods
Public Instance Methods
all(payload = {}, headers = {})
click to toggle source
# File lib/vhx/utilities/api_operations/list.rb, line 7 def all(payload = {}, headers = {}) response = Vhx.connection.get( '/' + get_klass.downcase + 's', payload, headers, ) VhxListObject.new(response.body, get_klass.downcase + 's') end
list(payload = {}, headers = {})
click to toggle source
# File lib/vhx/utilities/api_operations/list.rb, line 16 def list(payload = {}, headers = {}) self.all(payload, headers) end