Class: SynchronizedModel::Message

Inherits:
Object
  • Object
show all
Includes:
Support
Defined in:
lib/synchronized_model/message.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Support

#underscore

Constructor Details

#initialize(model) ⇒ Message

Returns a new instance of Message.



10
11
12
# File 'lib/synchronized_model/message.rb', line 10

def initialize(model)
  @model = model
end

Instance Attribute Details

#modelObject (readonly)

Returns the value of attribute model.



8
9
10
# File 'lib/synchronized_model/message.rb', line 8

def model
  @model
end

Instance Method Details

#callObject



14
15
16
# File 'lib/synchronized_model/message.rb', line 14

def call
  message
end