Class: Nova::API::Resource::Company

Inherits:
Base show all
Defined in:
lib/nova/api/resource/company.rb

Constant Summary collapse

ALLOWED_ATTRIBUTES =
%i[]

Constants inherited from Base

Base::PRODUCTION_HOST, Base::SCHEME, Base::STAGING_HOST

Constants inherited from Utils::BaseStruct

Utils::BaseStruct::DATE_REGEX

Class Method Summary collapse

Methods inherited from Base

authorization_header, base_url, configuration, do_get, do_get_search, #endpoint, perform_get

Methods inherited from Utils::BaseStruct

#allowed_attributes, generate_valid_value_for, initialize_empty_model_with_id, value_for_field

Class Method Details

.endpointObject



27
28
29
# File 'lib/nova/api/resource/company.rb', line 27

def self.endpoint
  '/api/companies'
end

.listObject



31
32
33
# File 'lib/nova/api/resource/company.rb', line 31

def self.list
  do_get_search(endpoint, nil)
end