Module: Ubiquitously::Account::Authorizable::ClassMethods
- Defined in:
- lib/ubiquitously/models/service/account/authorizable.rb
Instance Method Summary collapse
Instance Method Details
#uses(*protocols) ⇒ Object
11 12 13 14 15 |
# File 'lib/ubiquitously/models/service/account/authorizable.rb', line 11 def uses(*protocols) @uses = protocols.flatten.map(&:to_s) unless protocols.blank? @uses ||= [] @uses end |
#uses?(protocol) ⇒ Boolean
17 18 19 |
# File 'lib/ubiquitously/models/service/account/authorizable.rb', line 17 def uses?(protocol) uses.include?(protocol.to_s) end |