Class: Radar::API::NestedResource
- Defined in:
- lib/radar/api/nested_resource.rb
Class Method Summary collapse
Methods inherited from Resource
api_client, class_name, descendants, #initialize, #to_h
Constructor Details
This class inherits a constructor from Radar::API::Resource
Class Method Details
.resource_base_path(path_base: 'v1') ⇒ Object
4 5 6 7 8 |
# File 'lib/radar/api/nested_resource.rb', line 4 def self.resource_base_path(path_base: 'v1') raise NotImplementedError, 'Radar::API::NestedResource is an abstract class' if self == NestedResource path_base + self::PARENT_CLASS::RESOURCE_NAME[:plural] end |