Class: BackboneSync::Rails::Faye::Event
- Inherits:
-
Object
- Object
- BackboneSync::Rails::Faye::Event
- Defined in:
- lib/backbone_sync-rails/faye/event.rb
Instance Method Summary collapse
- #broadcast ⇒ Object
-
#initialize(model, event) ⇒ Event
constructor
A new instance of Event.
Constructor Details
#initialize(model, event) ⇒ Event
Returns a new instance of Event.
7 8 9 10 |
# File 'lib/backbone_sync-rails/faye/event.rb', line 7 def initialize(model, event) @model = model @event = event end |
Instance Method Details
#broadcast ⇒ Object
12 13 14 |
# File 'lib/backbone_sync-rails/faye/event.rb', line 12 def broadcast Net::HTTP.post_form(uri, :message => ) end |