Module: ActiveResource::BearerAuthentication::Base::ClassMethods
- Defined in:
- lib/active_resource/bearer_authentication/base.rb
Instance Method Summary collapse
Instance Method Details
#token(&block) ⇒ Object
13 14 15 16 17 18 19 |
# File 'lib/active_resource/bearer_authentication/base.rb', line 13 def token(&block) if block_given? self.password = block else self.password.is_a?(Proc) ? self.password.call : self.password end end |
#token=(value) ⇒ Object
9 10 11 |
# File 'lib/active_resource/bearer_authentication/base.rb', line 9 def token=(value) self.password = value end |