Class: SynchronizedModel::MessageReceive
- Inherits:
-
Object
- Object
- SynchronizedModel::MessageReceive
- Defined in:
- lib/synchronized_model/message_receive.rb
Instance Attribute Summary collapse
-
#message ⇒ Object
readonly
Returns the value of attribute message.
Instance Method Summary collapse
- #call ⇒ Object
-
#initialize(message) ⇒ MessageReceive
constructor
A new instance of MessageReceive.
Constructor Details
#initialize(message) ⇒ MessageReceive
Returns a new instance of MessageReceive.
7 8 9 |
# File 'lib/synchronized_model/message_receive.rb', line 7 def initialize() = Hash[.map { |k, v| [k.to_sym, v] }] end |
Instance Attribute Details
#message ⇒ Object (readonly)
Returns the value of attribute message.
5 6 7 |
# File 'lib/synchronized_model/message_receive.rb', line 5 def end |
Instance Method Details
#call ⇒ Object
11 12 13 14 15 16 17 |
# File 'lib/synchronized_model/message_receive.rb', line 11 def call if model update_model else log_model_not_found end end |