class Fabricio::Networking::OrganizationRequestModelFactory
This factory creates request models for fetching data for Organization model object
Constants
- FABRIC_API_PATH
- FABRIC_API_URL
Server constants
- FABRIC_ORGANIZATIONS_ENDPOINT
Public Instance Methods
get_organization_request_model()
click to toggle source
Returns a request model for obtaining the organization data
@return [Fabricio::Networking::RequestModel]
# 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