Module: Vhx::ApiOperations::Request::ClassMethods
- Defined in:
- lib/vhx/utilities/api_operations/request.rb
Instance Method Summary collapse
- #find(identifier, payload = {}, headers = {}) ⇒ Object
- #retrieve(identifier, payload = {}, headers = {}) ⇒ Object
Instance Method Details
#find(identifier, payload = {}, headers = {}) ⇒ Object
5 6 7 8 9 10 11 12 |
# File 'lib/vhx/utilities/api_operations/request.rb', line 5 def find(identifier, payload = {}, headers = {}) response = Vhx.connection.get( get_hypermedia(identifier), payload, headers, ) self.new(response.body) end |
#retrieve(identifier, payload = {}, headers = {}) ⇒ Object
14 15 16 |
# File 'lib/vhx/utilities/api_operations/request.rb', line 14 def retrieve(identifier, payload = {}, headers = {}) self.find(identifier, payload, headers) end |