Module: RPXNow

Defined in:
lib/rpx_regexp.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#email_regexpObject

Returns the value of attribute email_regexp.



6
7
8
# File 'lib/rpx_regexp.rb', line 6

def email_regexp
  @email_regexp
end

Instance Method Details

#user_data(token, options = {}) ⇒ Object



8
9
10
11
# File 'lib/rpx_regexp.rb', line 8

def user_data(token, options={})
  result = user_data!(token, options={})
  result["email"].match(self.email_regexp) ? result : nil
end

#user_data!Object



4
# File 'lib/rpx_regexp.rb', line 4

alias_method :user_data!, :user_data