Class: Fabricio::Networking::OrganizationRequestModelFactory
- Inherits:
-
Object
- Object
- Fabricio::Networking::OrganizationRequestModelFactory
- Defined in:
- lib/fabricio/networking/organization_request_model_factory.rb
Overview
This factory creates request models for fetching data for Organization model object
Constant Summary collapse
- FABRIC_API_URL =
Server constants
'https://fabric.io'
- FABRIC_API_PATH =
'/api/v2'
- FABRIC_ORGANIZATIONS_ENDPOINT =
'/organizations'
Instance Method Summary collapse
-
#get_organization_request_model ⇒ Fabricio::Networking::RequestModel
Returns a request model for obtaining the organization data.
Instance Method Details
#get_organization_request_model ⇒ Fabricio::Networking::RequestModel
Returns a request model for obtaining the organization data
16 17 18 19 20 21 22 23 |
# File 'lib/fabricio/networking/organization_request_model_factory.rb', line 16 def get_organization_request_model model = Fabricio::Networking::RequestModel.new do |config| config.type = :GET config.base_url = FABRIC_API_URL config.api_path = FABRIC_API_PATH + FABRIC_ORGANIZATIONS_ENDPOINT end model end |