Class: Mosaic::Sdk::Models::Base Abstract
- Inherits:
-
Object
- Object
- Mosaic::Sdk::Models::Base
- Defined in:
- lib/mosaic/sdk/models/base.rb
Overview
This class is abstract.
Subclass and implement #uri
Abstract base class for all Mosaic API models.
Provides common collection operations: listing and creating resources. Subclasses must implement the private #uri method to define the API endpoint.
Defined Under Namespace
Classes: Instance
Instance Method Summary collapse
-
#create(**kwargs) ⇒ Instance
Creates a new resource.
-
#initialize(extra = {}) ⇒ Base
constructor
Initializes a resource collection.
-
#list ⇒ Array<Instance>
Lists all resources of this type.
Constructor Details
#initialize(extra = {}) ⇒ Base
Initializes a resource collection.