Sha256: d3ef4da7302f7a838853cd988c1e19433d7c89cc2831ab9ecf99130eb4531fe8
Contents?: true
Size: 484 Bytes
Versions: 3
Compression:
Stored size: 484 Bytes
Contents
require_relative '../vhx_list_object' module Vhx module ApiOperations module List module ClassMethods def all(payload = {}) response = Vhx.connection.get('/' + get_klass.downcase + 's', payload) VhxListObject.new(response.body, get_klass.downcase + 's') end def list(payload = {}) self.all(payload) end end def self.included(klass) klass.extend(ClassMethods) end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
vhx-ruby-0.0.8 | lib/vhx/utilities/api_operations/list.rb |
vhx-ruby-0.0.7 | lib/vhx/utilities/api_operations/list.rb |
vhx-ruby-0.0.6 | lib/vhx/utilities/api_operations/list.rb |