Class: ApiMaker::ModelContentGeneratorService
- Inherits:
-
ApplicationService
- Object
- ServicePattern::Service
- ApplicationService
- ApiMaker::ModelContentGeneratorService
- Defined in:
- app/services/api_maker/model_content_generator_service.rb
Instance Attribute Summary collapse
-
#resource ⇒ Object
readonly
Returns the value of attribute resource.
Instance Method Summary collapse
-
#initialize(resource:) ⇒ ModelContentGeneratorService
constructor
A new instance of ModelContentGeneratorService.
- #perform ⇒ Object
Methods inherited from ApplicationService
Constructor Details
#initialize(resource:) ⇒ ModelContentGeneratorService
Returns a new instance of ModelContentGeneratorService.
6 7 8 |
# File 'app/services/api_maker/model_content_generator_service.rb', line 6 def initialize(resource:) @resource = resource end |
Instance Attribute Details
#resource ⇒ Object (readonly)
Returns the value of attribute resource.
2 3 4 |
# File 'app/services/api_maker/model_content_generator_service.rb', line 2 def resource @resource end |
Instance Method Details
#perform ⇒ Object
10 11 12 |
# File 'app/services/api_maker/model_content_generator_service.rb', line 10 def perform succeed! model_content end |