Class: Mocodo::MountainIdentification::RidgeRendering

Inherits:
Base
  • Object
show all
Defined in:
lib/mocodo/mountain_identification.rb

Constant Summary collapse

EndPoint =
"/mountainIdentification/v1/ridgeRendering"

Constants inherited from Base

Base::BaseURL

Instance Attribute Summary

Attributes inherited from Base

#api_key, #response

Instance Method Summary collapse

Methods inherited from Base

#initialize

Constructor Details

This class inherits a constructor from Mocodo::Base

Instance Method Details

#rendering(options = {}) ⇒ Object



5
6
7
8
# File 'lib/mocodo/mountain_identification.rb', line 5

def rendering(options={})
  response = get(build_url(EndPoint, options), {'Content-Type' =>'application/json'})
  JSON.parse(response, symbolize_names: true)
end