Sha256: 9dab71f1d98678903e3ea512be148e234758d6e6eead554b4bce6b2869d245f7
Contents?: true
Size: 446 Bytes
Versions: 3
Compression:
Stored size: 446 Bytes
Contents
module Vhx module ApiOperations module Request module ClassMethods def find(identifier) response = Vhx.connection.get(get_hypermedia(identifier)) self.new(response.body) end def retrieve(identifier) self.find(identifier) end end def self.included(klass) klass.extend(Vhx::HelperMethods) 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/request.rb |
vhx-ruby-0.0.7 | lib/vhx/utilities/api_operations/request.rb |
vhx-ruby-0.0.6 | lib/vhx/utilities/api_operations/request.rb |