Class: Rapidfire::BaseService
- Inherits:
-
Object
- Object
- Rapidfire::BaseService
- Extended by:
- ActiveModel::Naming
- Includes:
- ActiveModel::Conversion, ActiveModel::Model, ActiveModel::Validations
- Defined in:
- app/services/rapidfire/base_service.rb
Direct Known Subclasses
AnswerGroupBuilder, QuestionForm, QuestionGroupResults, QuestionResult
Instance Method Summary collapse
-
#initialize(params = {}) ⇒ BaseService
constructor
A new instance of BaseService.
- #persisted ⇒ Object
Constructor Details
#initialize(params = {}) ⇒ BaseService
Returns a new instance of BaseService.
12 13 14 15 16 17 18 |
# File 'app/services/rapidfire/base_service.rb', line 12 def initialize(params={}) params.each do |attr, value| self.public_send("#{attr}=", value) end if params super() end |
Instance Method Details
#persisted ⇒ Object
10 |
# File 'app/services/rapidfire/base_service.rb', line 10 def persisted; false end |