Method: OSub::Subscription#unsubscribe

Defined in:
lib/osub/subscription.rb

#unsubscribe(hub_url, token = nil) ⇒ Object

Unsubscribe to the topic through the given hub.



36
37
38
39
40
41
# File 'lib/osub/subscription.rb', line 36

def unsubscribe(hub_url, token = nil)
  if token != nil
    @tokens << token.to_s
  end
  change_subscription(:unsubscribe, hub_url, token)
end