Class: EngagingNetworks::ActionModel

Inherits:
Object
  • Object
show all
Extended by:
ActiveModel::Naming
Includes:
ActiveModel::Conversion, ActiveModel::Validations
Defined in:
lib/engaging_networks/action_model.rb

Direct Known Subclasses

ActionCreateAction, DuplicateCampaignAction

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(attrs = {}) ⇒ ActionModel

Returns a new instance of ActionModel.



7
8
9
10
11
12
13
# File 'lib/engaging_networks/action_model.rb', line 7

def initialize(attrs = {})
  attrs.each do |key,value|
    if self.respond_to?("#{key}=")
      self.send("#{key}=", value)
    end
  end
end

Class Method Details

.reflect_on_association(association) ⇒ Object



19
20
21
# File 'lib/engaging_networks/action_model.rb', line 19

def self.reflect_on_association(association)
  nil
end

Instance Method Details

#persisted?Boolean

Returns:

  • (Boolean)


15
16
17
# File 'lib/engaging_networks/action_model.rb', line 15

def persisted?
  false
end