Class: Azeroth::Resourceable::EndpointsBuilder Private
- Inherits:
-
Object
- Object
- Azeroth::Resourceable::EndpointsBuilder
- Defined in:
- lib/azeroth/resourceable/endpoints_builder.rb
Overview
This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.
Builder responsible to add all methods to the controller
Builder uses other builders to put together it’s methods
Instance Method Summary collapse
-
#initialize(klass, model_name, options) ⇒ EndpointsBuilder
constructor
private
A new instance of EndpointsBuilder.
Constructor Details
#initialize(klass, model_name, options) ⇒ EndpointsBuilder
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Returns a new instance of EndpointsBuilder.
20 21 22 23 24 25 26 27 |
# File 'lib/azeroth/resourceable/endpoints_builder.rb', line 20 def initialize(klass, model_name, ) @klass = klass @options = @model = Azeroth::Model.new(model_name, ) add_routes ResourcesBuilder.new(klass, model_name, ).build end |