Method: Fabricio::Networking::AppRequestModelFactory#get_app_request_model
- Defined in:
- lib/fabricio/networking/app_request_model_factory.rb
#get_app_request_model(app_id) ⇒ Fabricio::Networking::RequestModel
Returns a request model for obtaining a specific app
32 33 34 35 36 37 38 39 40 |
# File 'lib/fabricio/networking/app_request_model_factory.rb', line 32 def get_app_request_model(app_id) path = "#{FABRIC_API_PATH}#{app_endpoint(app_id)}" model = Fabricio::Networking::RequestModel.new do |config| config.type = :GET config.base_url = FABRIC_API_URL config.api_path = path end model end |