Class: Access::Verify

Inherits:
Object
  • Object
show all
Includes:
MuchMeta
Defined in:
lib/access/verify.rb

Class Method Summary collapse

Instance Method Summary collapse

Methods included from MuchMeta

#set_up_methods, #set_values

Constructor Details

#initialize(values) ⇒ Verify

Returns a new instance of Verify.



13
14
15
16
17
18
19
# File 'lib/access/verify.rb', line 13

def initialize(values)
  @used_fields = []
  set_up_methods(values)
  set_values(values)
  @categories = Access::Category.process_batch(@categories) if @categories
  @redemption_methods = Access::Redeem.process_batch(@redemption_methods) if @redemption_methods
end

Class Method Details

.filter(filter, options = {}) ⇒ Object



9
10
11
# File 'lib/access/verify.rb', line 9

def self.filter(filter, options = {})
  Access::Api.new.verify_filter filter, options
end

.token(options = {}) ⇒ Object



5
6
7
# File 'lib/access/verify.rb', line 5

def self.token(options = {})
  Access::Api.new.verify_token options
end