Module: Billfold::Identity

Defined in:
lib/billfold/identity.rb

Overview

## Billfold::Identity

Support for an identity class. If you are using ActiveRecord, you probably want ‘Billfold::ActiveRecordIdentity`, which includes everything in this module.

Requires the following attributes

* `user` -- the owning `Billfold::User` instance; required
* `provider` -- the OmniAuth provider name (e.g. "twitter"); required
* `value` -- the unique identifier (within the scope of `provider`) of
             the identity (e.g. "my_twitter_handle"); required
* `data` -- additional information passed in from OmniAuth under the
            `"user_info"` key

Defined Under Namespace

Modules: ClassMethods, InstanceMethods

Class Method Summary collapse

Class Method Details

.included(base) ⇒ Object



20
21
22
23
# File 'lib/billfold/identity.rb', line 20

def self.included(base)
  base.extend ClassMethods
  base.send(:include, InstanceMethods)
end