Class: SynchronizedModel::Publish
- Inherits:
-
Object
- Object
- SynchronizedModel::Publish
- Defined in:
- lib/synchronized_model/publish.rb
Instance Attribute Summary collapse
-
#model ⇒ Object
readonly
Returns the value of attribute model.
Instance Method Summary collapse
- #call ⇒ Object
-
#initialize(model) ⇒ Publish
constructor
A new instance of Publish.
Constructor Details
#initialize(model) ⇒ Publish
Returns a new instance of Publish.
7 8 9 |
# File 'lib/synchronized_model/publish.rb', line 7 def initialize(model) @model = model end |
Instance Attribute Details
#model ⇒ Object (readonly)
Returns the value of attribute model.
5 6 7 |
# File 'lib/synchronized_model/publish.rb', line 5 def model @model end |
Instance Method Details
#call ⇒ Object
11 12 13 14 |
# File 'lib/synchronized_model/publish.rb', line 11 def call = SynchronizedModel::Message.new(model).call SynchronizedModel.publish_handler.call() end |