Class: Rapidfire::BaseService

Inherits:
Object
  • Object
show all
Extended by:
ActiveModel::Naming
Includes:
ActiveModel::Conversion, ActiveModel::Model, ActiveModel::Validations
Defined in:
app/services/rapidfire/base_service.rb

Instance Method Summary collapse

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

#persistedObject



10
# File 'app/services/rapidfire/base_service.rb', line 10

def persisted; false end