Method: Belvo::APISession#detail
- Defined in:
- lib/belvo/http.rb
#detail(path, id, params: nil) ⇒ Hash
Show specific resource details
104 105 106 107 108 109 110 111 112 |
# File 'lib/belvo/http.rb', line 104 def detail(path, id, params: nil) params = {} if params.nil? resource_path = format('%<path>s%<id>s/', path: path, id: id) response = get(resource_path, **params) raise_for_status response response.body end |