Method: Midjourney::HTTP#get
- Defined in:
- lib/midjourney/http.rb
#get(path:) ⇒ Object
3 4 5 6 7 |
# File 'lib/midjourney/http.rb', line 3 def get(path:) to_json(conn.get(uri(path: path)) do |req| req.headers = headers end&.body) end |