Module: DiandianOAuth::Client::Callbacks::ClassMethods
- Defined in:
- lib/diandian_oauth/client/callbacks.rb
Instance Method Summary collapse
- #callbacks(name = nil) ⇒ Object
- #callbacks=(callbacks) ⇒ Object
- #token_refreshed(proc_or_method) ⇒ Object
Instance Method Details
#callbacks(name = nil) ⇒ Object
25 26 27 28 29 30 31 |
# File 'lib/diandian_oauth/client/callbacks.rb', line 25 def callbacks name=nil if name @callbacks[name] ||= [] else @callbacks end end |
#callbacks=(callbacks) ⇒ Object
32 33 34 |
# File 'lib/diandian_oauth/client/callbacks.rb', line 32 def callbacks= callbacks @callbacks = callbacks end |